我一定做错了什么。 我试图使用 Google 分析器追踪由 InpulSoft (我们的 CRM/etc 提供商) 主持的一个表格在其域内的点击率。 我们希望在 GA 中从一个单独的域追踪点击率 。
我尝试了 GA 代码的几种表格, 首先是 Async 片断, 然后是传统的片断, 现在又回到 Async 。 下面是我要使用的 Async 代码( 在 < code@ lt;body> code> 标签中) :
在 页面顶部附近
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push([ _setAccount , UA-XXXXX-1 ]);
_gaq.push([ _setDomainName , oursite.com ]);
_gaq.push([ _setAllowLinker , true]);
_gaq.push([ _trackPageview , /saleform/67 ]);
</script>
进一步下页
https://ssl.google-analytics.com/ga.js type= text/javapict></ satict>
<强度 > 相关信息 强 >
- Using Firebug or Chrome s dev tools, I don t see any errors coming from GA when using this code.
- Tracking is already working on
oursite.com
, but does not receive data from this page. - In Firebug s console, _gaq and _gat seem to be working fine (no errors, they appear as objects with a lot inside)
- __utm.gif is NOT being requested. I know this is a Bad Thing but am unsure what to do about it.
- Using a Firefox extension to view cookies, I do NOT see any cookies being set for the domain specified in the above code (or the site hosting the form). edit: after including _setAllowLinker on our site, cookies DO seem to be working (showing up on the page)
补充 , 我尝试过手动从 JS 控制台( 没有运气 -- -- 该页面没有出现在 GA 中) 发射 < codegaq. push ([ [_ trackPageview, / saleform/67 ] ); 方法 。
请告诉我这篇文章中是否缺少任何相关信息, 我很乐意更新, 感谢各位事先提供任何见解,