AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

not all events are send to ga servers #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Tracking Code (Javascript / ga.js)

Issue summary:
I am loading the ga.js and tracking several events in 1 go. here is my code:

var _gaq= _gaq || []

_gaq.push(['_setAccount', 'UA-26967225-1']);

_gaq.push(['_trackPageview']);

_gaq.push(['_trackEvent','product','Impressions','(DVD-SPEED) Speed']);
_gaq.push(['_trackEvent','product','Impressions','(DVD-FRAN) Frantic']);
_gaq.push(['_trackEvent','product','Impressions','(DVD-LTWP) Lethal Weapon']);
_gaq.push(['_trackEvent','product','Impressions','(DVD-FDBL) Fire Down Below']);
_gaq.push(['_trackEvent','product','Impressions','(PC-SWAT3) SWAT 3: Close 
Quarters Battle']);
_gaq.push(['_trackEvent','product','Impressions','(PC-TWOF) The Wheel Of 
Time']);
_gaq.push(['_trackEvent','product','Clicks','(DVD-SPEED2) Speed 2: Cruise 
Control']);

(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);
})();

The first request that loads this code, all events are tracked. If I do 
subsequent requests, some or most of the events are lost. I am watching this 
with firebug and normally there is 1 request to ga servers per event. But when 
the problem occurs, only some of the events are send to ga servers.

Any ideas why this is caused?

URL of the page exhibiting the issue: not public

Steps to reproduce issue:
1. add the above code at the head or body section of your html in a web site 
with multiple pages
2. navigate to several pages using i.e. firefox and monitor the ga requests 
with firebug
3. for the 1st page you view, firefox will do all event requests to ga servers 
but for subsequent pages only some of the events will be send.

Expected output:
All events to be send to ga servers

Actual results:
Only some events (random) are send.

Notes:
-

Original issue reported on code.google.com by kostas.k...@googlemail.com on 4 Jan 2012 at 10:15

GoogleCodeExporter commented 9 years ago
You might be approaching the limits of events.
https://developers.google.com/analytics/devguides/collection/other/limits-quotas

You can also look into enhanced ecommerce which will rollup all of the product 
impressions into one hit.
https://developers.google.com/analytics/devguides/collection/analyticsjs/enhance
d-ecommerce

Original comment by dspatti...@google.com on 24 Jun 2014 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by dspatti...@google.com on 24 Jun 2014 at 11:33