Google 网站优化工具跨域跟踪 - 出站链接不起作用
我试图让谷歌网站优化器(gwo)跨域跟踪与此处描述的异步代码一起使用:http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=151978
我的出站链接如下所示:
但是当我点击该出站链接时,它不会转到其他网站。如果我删除 return false; ,它会起作用,但这会阻止 gwo 转换注册。
我认为这可能是一个javascript冲突,所以我做了这个简单的测试文件,但它仍然不起作用: http://www.smilinggardener.com/files/test.php
这里有熟悉 gwo 的人知道问题可能是什么吗?如果您查看我的 test.php 的页面源代码,我认为代码是完美的。非常感谢您给我的任何建议。
菲尔
I'm trying to get google website optimizer (gwo) cross-domain tracking working with the asynchronous code described here: http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=151978
My outbound link looks like this:
<a href="http://secure.ultracart.com" onclick="_gaq.push(['_link', 'http://secure.ultracart.com']); return false;">link</a>
But when I click on that outbound link, it doesn't go to the other website. It works if I remove the return false;, but that stops the gwo conversion from registering.
I thought it might be a javascript conflict, so I made this simple test file, and it still doesn't work: http://www.smilinggardener.com/files/test.php
Is there someone here familiar with gwo who knows what the problem might be? If you look at the page source of my test.php, I think the code is perfect. Thanks very much for any advice you can give me.
Phil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将 onclick 事件更改为:
Google 的跨域 GWO 测试文档确实很糟糕。您需要添加“gwo”。到“_link”方法,因为这就是在 GWO 跟踪脚本中设置变量的方式。实际上,谷歌的文档并未显示“gwo.”,这很好。
You need to change the onclick event to:
Google's documentation for the cross domain GWO tests is really terrible. You need to add the 'gwo.' to the '_link' method because that's how the variables are set in the GWO tracking scripts. Google's actually documentation on this does not show the 'gwo.', which is nice.