analytics code in upper left corner

Posted in: Newspaper
Post count: 11

http://itswhennotif.com/

My analytics code is showing up in the upper left hand corner of the header.

Thanks

Post count: 83

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&#8217;,’ga’);

ga(‘create’, ‘UA-76794601-1’, ‘auto’);
ga(‘send’, ‘pageview’);

</script>

Hope this helps.

Kevin

Post count: 11

I have used three separate plugins.. all popular +20K installs and this happens with all of them.

You want me to enter that script on every page/post?

Not understanding you.

Thanks

Post count: 11

I have pasted the full code in from Google… Flushed the server cache… dumped the cache in three browsers and my ipad…. still getting it.

I was not getting it before I updated the theme.

Thanks

Post count: 83

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

Post count: 11

That worked thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.