Google analytics Google Analytics事件跟踪未报告
这是我第一次为moonstone.co.za的Universal Analytics设置事件跟踪。我在标签前添加了跟踪代码:Google analytics Google Analytics事件跟踪未报告,google-analytics,event-tracking,Google Analytics,Event Tracking,这是我第一次为moonstone.co.za的Universal Analytics设置事件跟踪。我在标签前添加了跟踪代码: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getEle
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxx-10', 'auto');
ga('send', 'pageview');
</script>
然后,我为每个按钮添加jquery:
<div class="textwidget"><a href="http://www.moonstone.co.za/moonstone-protector/" target="_blank" onClick=”ga(‘send’, ‘event’, ‘protector-compliance-service’, ‘click’, ‘compliance-and-risk-management-page’);”><img src="http://www.moonstone.co.za//wp-content/banners/moonstone-protector-compliance.jpg" /></a></div>
但我无法在我等待了一段时间才看到的实时报告中或在我的事件仪表板中看到事件。我试图调试它,但我迷路了。有什么想法吗?提前谢谢。尝试更改“to”有区别。谢谢!我会试试看。