[英]Google Analytics Virtual Pageview with two onClick actions
I have been trying to get the following code to work: 我一直在尝试使以下代码起作用:
<button type="button" onclick="productAddToCartForm.submit(this); _gaq.push(['_trackPageview','/checkout/addtocart/'])">
The submit action is working as it should, but the Virtual PageView is not working at all. 提交操作正在按预期方式工作,但是虚拟PageView根本无法工作。
Check the code on your site. 检查您网站上的代码。 Your analytics code might be run using a diffrent Variable name. 您的分析代码可能使用不同的变量名称运行。 For example on my site its: 例如在我的网站上:
var _gaq = _gaq || [];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.