我注意到,我的音乐页面上没有其他Javascripts被Google Analytics(分析)跟踪。我的所有其他页面没有JavaScript被跟踪。使用Javascript的页面没有被谷歌分析跟踪
我的脚本中是否存在阻止Google跟踪此页面的内容?
此页面的分析代码与</body>
标记相邻。
我不认为这会影响它,但它可能会。 Page in Question Here if Needed。
更新:我检查了我的脚本,没有使用下面提到的_gat和_gaq变量。
更新2:这只是我的音乐页面,显然。因此只有一个页面没有被跟踪,并且该页面上的脚本列在下面。
分析代码:
<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-40498113-1', 'caseykidd.com');
ga('send', 'pageview');
</script>
</body>
音乐网页中的脚本:
<script type="text/javascript" src="videobox/js/mootools.js"></script>
<script type="text/javascript" src="videobox/js/swfobject.js"></script>
<script type="text/javascript" src="videobox/js/videobox.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="player/src/jquery.ubaplayer.js"></script>
<script>
jQuery(document).ready(function() {
jQuery.noConflict();
jQuery(function(){
jQuery("#ubaPlayer").ubaPlayer({
codecs: [{name:"MP3", codec: 'audio/mpeg;'}]
});
});
jQuery('a[rel=vidbox]').click(function() {
if (jQuery("#ubaPlayer").ubaPlayer("playing") === true) {
jQuery("#ubaPlayer").ubaPlayer("pause");
}
return false;
});
})
</script>
看起来像指向您的站点的链接没有生存。 – 2013-04-29 04:52:57
@MattKantor修正! – pianoman 2013-04-29 04:53:53