Mobile app version of vmapp.org
Login or Join
Radia820

: Since you mentioned that your code is in the footer, do you have the entire code block in the footer? If so try putting the top half in head: This code is just an example to show where

@Radia820

Since you mentioned that your code is in the footer, do you have the entire code block in the footer? If so try putting the top half in head:

This code is just an example to show where the break should occur. Your code might look different.

<head>
<script type="text/javascript">
//Tracking code customizations only
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'your analytics acct #']);
_gaq.push(['_setAllowHash', false]);
_gaq.push(['_trackPageview']);
</script>
</head>


Only include the part starting with (function(){ in the footer with script tags around it:

<script>
(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>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme