“Track Event” is seen in Console (GA Debug) but network request isn't seen in Network Panel

∥☆過路亽.° 提交于 2020-01-01 19:39:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!