问题描述
// _ gaq.push(['_ trackEvent','Cat' ,'Act','Label',1.1]);
_gaq.push(['_ trackPageview','/ new']);
这是行得通的,我可以在GA调试器中看到这个:
_gaq.push处理_trackPageviewfor args:[]:ga_debug.js:18
轨迹Pageview ga_debug.js:18
跟踪信标发送!
我可以在Network Panel中看到__utm.gif请求。
但是,当我将代码更改为:
_gaq.push(['_ trackEvent','Cat ','Act','Label',1.1]);
//_gaq.push(['_trackPageview','/ new']);
以下是来自GA调试器的控制台输出:
$ b $对于args:[Cat,Act,Label,1]:ga_debug.js:18
跟踪事件
处理_trackq但我从来没有看到'追踪信标发送!'。我在网络面板中看不到__utm.gif请求。等待几天后,我在GA报告中没有看到任何记录。所以我很肯定它从来没有发过。
在这种情况下,我做错了什么?
更新:
我终于测试了几次,知道了:
传递给Ga的值必须是INT类型。所以1.1不工作,但1正在工作。
我认为GA调试器应该添加一个警告并将其输出到控制台:)
更新:
我终于测试了几次并知道:
传递给Ga的值必须是 INT 类型。所以1.1不工作,但1正在工作。
我认为GA调试器应该添加一个警告并将其输出到控制台:)
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:18Track 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 :)
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 :)
这篇关于“跟踪事件”在控制台(GA调试)中可以看到,但在网络面板中看不到网络请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!