开发者

When I add google analytics to my website the second part dont show up in my source

开发者 https://www.devze.com 2023-01-24 15:49 出处:网络
I add the whole Google analytics code but the part of the function does not show up..开发者_运维技巧

I add the whole Google analytics code but the part of the function does not show up..开发者_运维技巧

You can check out my source at http://vivamaroc.nl/

I did alot of research before I started this post so I hope anyone could help me out with this problem.

:-) Thanks alot.


Try pasting this code instead of yours exactly before the closing </body> tag.

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3252844-6']);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消