Analytics Tracking Code – Help

Posted in: Newspaper
Post count: 11

I’ve searched and have read various threads here regarding Analytics code placement, etc. I’m still in need of help. I’m placing the script provided by Analytics into the area in theme panel, but theme panel says it places it in body and Analytics says to put it as first in HEAD. Is this an issue? I don’t seem to be seeing any analytics data.

I’m placing this in the Theme Panel (modified to remove sensitive data)

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

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

Is this what I should be putting in this place in the theme panel?

Post count: 20688

Hi,

The Analytics code entered in the theme panel will be added to the head of the website, please enter it the there and there will be no problem. We will modify the tooltip accordingly in the next theme update. Thank you for pointing this out and sorry for the confusion.

Thanks

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