我有一系列链接,我试图在点击特定元素时跟踪GA事件。我已根据此处的指南https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide实现了此功能,但目前我似乎无法在Google Analytics中触发事件。我在这个论坛上检查了其他各种类似的问题,但我找不到适用于我的解决方案。
一个例子的代码如下。页面本身可以在http://www.300hours.com/offers找到。
非常感谢任何帮助!
<a href="http://go.300hours.com/passedtense" onclick="_gaq.push(['_trackEvent', 'Offers', 'Passed Tense', 'passedtense',,false]);" target="_blank"><div class="span4"><img alt="Passed Tense" src="http://www.300hours.com/files/theme/FreeBanner.png" title="Passed Tense" style="z-index: 999999;position: absolute;top: -4px;height: 75px;width: 75px;right: -4px;"><div style="padding-top:10px; font-weight:bold;">Passed Tense</div><div class="media-centered media-centered-medium"><div class="media-centered-overlay"></div><img alt="Passed Tense" src="http://www.300hours.com/files/theme/Slide10.jpg" width="100%" height="100%" title="Passed Tense"><div class="title-block"><b>FREE mock exams & quizzes</b><div style="font-size:12px;text-align: left;margin-left: 10px;font-style: italic;"><br><br>Custom Exams: Choose the difficulty level you want<br><br>Custom Quizzes: Choose the topic you need practice on<br><br>“Earned Level”: Guidance at your individual knowledge-level of the material</div></div></div><div style="text-align:center; font-size:12px;"><b>Try a new way of studying</b><br> <div class="line-separator"></div><div class="offer-text">Our Adapt question bank is unlike other study material. It adapts to your personal understanding of the material so you can study at your own level and not receive questions that are too easy or too difficult - until you’re ready!</div></div><div class="wsite-button wsite-button-small wsite-button-normal reviews-offers-button" href="http://go.300hours.com/passedtense" onclick="_gaq.push(['_trackEvent','Offers', 'Passed Tense', 'passedtense',,false]);" target="_blank"><span class="wsite-button-inner reviews-offers-button-inner">Free Qbank (worth $199)</span></div></div></a>
答案 0 :(得分:0)
我看到一个错误,_ga未定义。
Offers.html第98行。
中号