Hi mygfdfliving,
Try to add the script to the header.php as suggested by google analytics.
I tried adding it in the header too. I am not having any luck in having google analytics track the site though. Any other hints? I am placing the code:
<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-32419388-1’]);
_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>
before the </body> tag.
Try to put it somewhere in the <head>.
You can also try to add a plugin like “Ultimate Google Analytics”.
Once you’ve installed it, you can go to Settings/Ultimate GA and put in your account ID, which should basically do it already.
hello Alexander
i instaled the plugin as you mentioned,
Sporings-id
UA-40973XXX-1
Status: Sporing er blevet installeret
it tells me its instaled, but when i tjeck the stats its shows none visitors 🙁 dont know what went wrong? can it takes some time before its up?