Google Analytics code showing in my website

Posted in: Newsmag
Post count: 3

Everytime I add My Google analytics code in the Analytics section of Theme Panel it shows on my header publicly. Somethings is wrong. Any help? Im running the 4.3 version

http://www.rxmagazine.fit

Post count: 23312

Hello pablodigilio,

I have inspected your website and I did not saw any GA code on your website in the frontend. It seems to work as expected.

The Google Analytics code needs to be added to the script tags, like this -> https://www.screencast.com/t/0AnmyGNB

The example is below ->

<script>
your analytics code
</script>

Thanks.

Post count: 23

I installed the google analytics code through the theme panel a few days ago, and it’s still not turning up results.

http://culvercitycatalyst.co

Thanks in advance

Post count: 23312

Hello cccadmin,

The Google Analytics code needs to be added to the script tags, like this -> https://www.screencast.com/t/0AnmyGNB

The example is below ->

<script>
your analytics code
</script>

Thanks.

Post count: 23

Yes, I have it in there that way and it’s still not working.

Post count: 23

Here’s the code I have in the theme panel.

<script>
UA-118323436-1
</script>

Post count: 23

I’m trying this now..

<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-118323436-1″></script&gt;
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());

gtag(‘config’, ‘UA-118323436-1’);
</script>

Post count: 23312

Hello cccadmin,

The theme cannot provide such data, you could use Google analytics for example
https://moz.com/blog/absolute-beginners-guide-to-google-analytics
This will provide information about the traffic the website receives. Or try some WordPress website statistics plugins if needed.
If you are using Google Analytics and you have implemented it properly, there would be no problem.
https://developers.google.com/analytics/devguides/collection/analyticsjs/
The analytics code can be entered in the theme panel dedicated section. Then you can analyze the collected website data.
https://support.google.com/analytics/answer/1008083

Thanks.

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