Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Marafa Posted June 21, 2023 Posted June 21, 2023 (edited) Hi, I received this notice from google analytics To enable data collection, you need to add your new Google Analytics tag (gtag.js) to the header of every page of your site Where to add this tag ? Edited June 21, 2023 by Marafa
Marc Posted June 21, 2023 Posted June 21, 2023 Could you please clarify what you have done already to set this up? There should be no need to add anything to the code, other than adding your google analytics code into the analytics section
Marafa Posted June 25, 2023 Author Posted June 25, 2023 Hi I did not do anything, as I do not know what needs to be done and how
Randy Calvert Posted June 25, 2023 Posted June 25, 2023 He most likely has old GA tag (UA) and needs to replace it with GA 4 tag. Google is ending support for UA in July and requiring people to move to new GA4 tag. If you did the initial integration of the UA tag the recommended way, it would be in ACP - System - Site Features - Integrations. Choose Google Analytics and update the code. If you manually edited your theme, you would have to do that again there.
Adlago Posted June 25, 2023 Posted June 25, 2023 57 minutes ago, Marafa said: Hi I did not do anything, as I do not know what needs to be done and how Sign in to your Google Analytics account. Register your site for GA4 Get code for GA4 Open your script in ACP for Google Analytics. Before closing script tag add gtag , or your script will look like this <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-your old ID'); gtag('config', 'G-your ga4 ID'); </script> Save this. That's all about connecting an IPS site to Google's GA4. Go through all the directions in your Google Analytics profile and select anything that makes sense to you.
Recommended Posts