问题
I am confused with the track event issue.
//_gaq.push(['_trackEvent', 'Cat', 'Act', 'Label', 1.1]);
_gaq.push(['_trackPageview', '/new']);
This is working, I can see this in GA Debugger:
_gaq.push processing "_trackPageview" for args: "[]": ga_debug.js:18
Track Pageview ga_debug.js:18
Tracking beacon sent!
And I can see the __utm.gif request in Network Panel.
But when I changed the code to :
_gaq.push(['_trackEvent', 'Cat', 'Act', 'Label', 1.1]);
//_gaq.push(['_trackPageview', '/new']);
Here is the output in console from GA debugger:
_gaq.push processing "_trackEvent" for args: "[Cat,Act,Label,1]": ga_debug.js:18 Track Event
But I never see a 'Tracking beacon sent!'. And I cannot see a __utm.gif request in Network Panel. After waiting for days, I did not see any records in the GA Report. So I am very sure it's never sent.
Am I doing anything wrong in this case? Thanks very much for any kind of help!
UPDATE:
I finally tested a couple of times and knew:
The value passed to Ga MUST BE AN INT type. So 1.1 is not working but 1 is working.
I think GA Debugger should add a warning and output it in the console :)
回答1:
UPDATE:
I finally tested a couple of times and knew:
The value passed to Ga MUST BE AN INT type. So 1.1 is not working but 1 is working.
I think GA Debugger should add a warning and output it in the console :)
回答2:
You could check the tag implementation using the chrome extension called Trackie
来源:https://stackoverflow.com/questions/13149414/track-event-is-seen-in-console-ga-debug-but-network-request-isnt-seen-in-ne