for my work I am doing a research project on the validity of Google Analytics (mainly regarding verified flippa reports) β see if G. Analytics can be completely faked (simple Yes, it wonβt cut it)!
I modified the G. Analytics code as follows:
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-19629541-5']); _gaq.push(['_setAllowHash', false]); _gaq.push(['b._setAccount', 'UA-19629541-5']); _gaq.push(['b._setAllowHash', true]); for (var i=0;i<=10;i++) { _gaq.push(['_trackPageview']); _gaq.push(['b._trackPageview']); } (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Now it launches several visits and visitors at startup. You can see that the second number on __utma changes for each page view, this number is a client, when it changes, it means that you get a new visitor
The problem is that the statistics I get now looks like this:
- Visits: 1,785
- Unique Visitors: 1,781
- Page Views: 2,188
- Pages / Visit: 1.23
- Avg. Duration: 00:00:03
- Bounce Rate: 96.13 %%
- New visits: 99.78%
Please do not reduce the reduction in avg. duration of visit!
before they look like this:
- Visits: 135
- Unique Visitors: 118
- Page Views: 383
- Pages / Visit: 2.84
- Avg. Duration: 00:04:22
- Bounce Rate: 57.78%
- % New visits: 68.89%
Now my question is: how do I need to change the G. Analytics code (if at all possible) so that it looks something like this:
- Visits: 135 * 10 = 1350
- Unique visitors: 118 * 10 = 1180
- Page Views: 383 * 10 = 3830
- Pages / Visit: 2.84
- Avg. Duration: 00:04:22
- Bounce Rate: 57.78%
- % New visits: 68.89%
so basically increase the number of visits, unique visitors, pageviews of 10 , but leave the other options the same.
Http://jsfiddle.net examples are welcome
PS: sorry for my bad english (not my native language)
source share