google analytic code appearing in top left of webpages

Posted in: Newspaper
Post count: 58

Hi, I added GA code in theme panel/analytics. Nothing worked, so I checked the code and realsied I had pasted it wrong (I left out the script tag at the end). I put the correct code in, but for some reason, on half my pages, a small snippet of the code is appearing in the top left of the screen on the live site. Also, GA is only registering half my traffic, so I assume the pages with the code snippet are not sending data to GA.

Any ideas how to sort this?

thanks

Post count: 58

Hi, looking into this a bit more, I really need to know where the google analytics code gets added when you add it via the theme panel/analytics. And any other php files where I should look. I have never manually added the GA code, just used plugins and the theme panel so pointing in the direction of where to look would help. thanks

Post count: 20688

Hi,

If that code is appearing on the website it means you did not enter it correctly. Please make sure you add the full analytics code provided by Google in the theme panel, including the script tags. The code that you enter should be like this

<script>your analytics code</script>

Then clear any caching that you have installed and check again. There should be no code displayed on the website anymore.

Thanks

Post count: 58

thanks. fixed it

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