Tagged: google analytics
Hi,
I have the tracking code pasted into the enfold theme options. Google says the “tracking is not installed.” I used tag assistant and it said the code was installed outside the <head> tag.
Can you help get the analytics working?
Thanks
Hey!
Try using this code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8248044-3']);
_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>
Regards,
Josue
thanks
You are welcome, always glad to help :)
Regards,
Josue