My analytics code is showing up in the upper left hand corner of the header.
Thanks
Hi,
It looks as though you may not have entered the full Analytics script but just the ‘UA’ part.
You need to enter the full tracking code like this:
<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’,’https://www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘UA-76794601-1’, ‘auto’);
ga(‘send’, ‘pageview’);
</script>
Hope this helps.
Kevin
Hi,
You don’t need a separate plugin for the analytics code, you can enter it through your theme options.
You will find it near the bottom of the theme options panel labelled “ANALYTICS”
Just copy and paste the analytics code from Google straight into the code box and save.
It will also save you from having another plugin which could slow your site down.
I have always used this method for my Google Analytics code and it works perfectly.
If you need any more help let me know 🙂
Regards
Kevin