You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Google says they want me to update my Analytics Tag as per the quote and code below.
Previously you've said that K9 will handle this, but I just wanted to check whether the config line they mention is in place and, if not, which file I should edit to include it.
Global Site Tag (gtag.js)
This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first item into the <HEAD> of every web page that you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet below to your existing Global Site Tag.
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxx-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxxx-1'); </script>
Offline
K9 executes Google Analytics and Google Tag Manager separately so they use different code than what you posted. That looks like combined code that pushes the Google Analytics id through Google Tag Manager. Our setup is not like this. We fire them individually.
Offline
I thought I would give it a try and just added the above gtag code to skin.php via Dashboard / System / Displays / Display Skins just under the <head> tag. Both the old and new Analytics code are running and collecting data.
Last edited by sdn (10-16-2021 03:38:26)
Offline