New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate reporting due to visitor IP change #7772

Closed
BaruchYoussin opened this Issue Apr 27, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@BaruchYoussin

BaruchYoussin commented Apr 27, 2015

The following excerpt from my server log is reported as two visits despite the fact that the page was viewed only once, on the first line of this log:

213.156.Visitor.IP - - [03/Apr/2015:10:39:44 -0500] "GET /java-incorrect-time-zone-bug-windows.html HTTP/1.1" 200 9251 "http://stackoverflow.com/questions/2106525/java-incorrect-timezone" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
213.156.Visitor.IP - - [03/Apr/2015:10:39:44 -0500] "GET /wp-content/cache/autoptimize/js/autoptimize_2af39afd414802b92688b956476aa38e.js?b7a424 HTTP/1.1" 200 46999 "http://baruchyoussin.com/java-incorrect-time-zone-bug-windows.html" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
213.156.Visitor.IP - - [03/Apr/2015:10:39:46 -0500] "GET /piwik-analytics/piwik.js HTTP/1.1" 200 15094 "http://baruchyoussin.com/java-incorrect-time-zone-bug-windows.html" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
213.156.Visitor.IP - - [03/Apr/2015:10:39:47 -0500] "GET /wp-content/cache/autoptimize/css/autoptimize_8de2408e83a7c9dd6137e726b3faba75.css HTTP/1.1" 200 17565 "http://baruchyoussin.com/java-incorrect-time-zone-bug-windows.html" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
50.22.11.17 - - [03/Apr/2015:10:39:53 -0500] "GET /piwik-analytics/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp HTTP/1.1" 200 4085 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
50.22.11.17 - - [03/Apr/2015:10:39:56 -0500] "GET /piwik-analytics/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=bdb038e526e3e7e663498d6cbfb59ff9&trigger=archivephp HTTP/1.1" 200 73 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
213.156.Visitor.IP - - [03/Apr/2015:10:39:47 -0500] "GET /piwik-analytics/piwik.php?action_name=Java%20incorrect%20time%20zone%20bug%20on%20Windows&idsite=1&rec=1&r=726397&h=18&m=39&s=44&url=http%3A%2F%2Fbaruchyoussin.com%2Fjava-incorrect-time-zone-bug-windows.html&urlref=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F2106525%2Fjava-incorrect-timezone&_id=4c0615e0222afccc&_idts=1428075584&_idvc=1&_idn=0&_refts=1428075584&_viewts=1428075584&_ref=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F2106525%2Fjava-incorrect-timezone&send_image=0&pdf=1&qt=0&realp=0&wma=1&dir=0&fla=1&java=1&gears=0&ag=1&cookie=1&res=1680x1050&gt_ms=2295 HTTP/1.1" 204 - "http://baruchyoussin.com/java-incorrect-time-zone-bug-windows.html" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
213.156.Visitor.IP - - [03/Apr/2015:10:39:57 -0500] "GET /favicon.ico HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
50.22.11.17 - - [03/Apr/2015:10:39:53 -0500] "GET /piwik-analytics/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp HTTP/1.1" 200 4085 "-" "Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.10.0 (development) Safari/534.34"
50.22.11.17 - - [03/Apr/2015:10:39:57 -0500] "GET /piwik-analytics/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=bdb038e526e3e7e663498d6cbfb59ff9&trigger=archivephp HTTP/1.1" 200 17 "-" "Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.10.0 (development) Safari/534.34"
111.206.Visitor.IP - - [03/Apr/2015:10:39:48 -0500] "GET /piwik-analytics/piwik.php?action_name=Java%20incorrect%20time%20zone%20bug%20on%20Windows&idsite=1&rec=1&r=726397&h=18&m=39&s=44&url=http://baruchyoussin.com/java-incorrect-time-zone-bug-windows.html&urlref=http://stackoverflow.com/questions/2106525/java-incorrect-timezone&_id=4c0615e0222afccc&_idts=1428075584&_idvc=1&_idn=0&_refts=1428075584&_viewts=1428075584&_ref=http://stackoverflow.com/questions /2106525/java-incorrect-timezone&send_image=0&pdf=1&qt=0&realp=0&wma=1&dir=0&fla=1&java=1&gears=0&ag=1&cookie=1&res=1680x1050&gt_ms=2295 HTTP/1.1" 204 - "-" "Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.10.0 (development) Safari/534.34"

Here Visitor.IP replaces the trailing part of the actual visitor IP and 50.22.11.17 is my server IP.
Visitor Log reports this as two visits, one from 213.156.Visitor.IP and the other from 111.206.Visitor.IP, both at the same time, in accordance with the number of calls to piwik.php.
According to Visitor Profile, these two visits are from the same visitor which means that the visitor's IP changed at this time. Looking further at the exact times of the http calls we might suggest that the visitor had both IPs all the time and used them interchangingly.

It appears that such situation causes Piwik to incorrectly report pageviews twice.

I have compared Piwik with Google Analytics and reported the results here; this bug accounts for the page misreported by Piwik in this report.

Unfortunately, I have already removed Piwik from my site due to performance issues.

I have the original html code of the page Java incorrect time zone bug on Windows that was viewed by that visitor but cannot include it since html code cannot be properly attached to this message. The Piwik code was included in an additional js file, autoptimize_2af39afd414802b92688b956476aa38e.js, and I have both files available if necessary.

@mattab mattab closed this Jul 14, 2015

@mattab mattab added the wontfix label Jul 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment