Hard coded gtag
-
A few years ago I hard coded a Google gtag in my WordPress website for Google analytics. I can see the tag in the website source code :
<link rel=”modulepreload” href=”https://domain/wp-includes/js/dist/script-modules/interactivity/index.min.js?ver=55aebb6e0a16726baffb” id=”@wordpress/interactivity-js-modulepreload”><script id=”google_gtagjs” src=”https://www.googletagmanager.com/gtag/js?id=G-RV4XXXXXXX” async></script>
<script id=”google_gtagjs-inline”>
window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(‘js’, new Date());gtag(‘config’, ‘G-RV4XXXXXXX’, {} );
</script>
I am unable to delete the tag in the source code as I cannot find where it is located. I have checked Theme File Editor, some of the PHP files, header/footer plugins, Customisation etc but to no avail.
I can see the tag in GTM. Is it good practice to delete the tag in GTM, and then follow the Cookieyes consent management platform using GTM (https://www.cookieyes.com/documentation/getting-started-with-google-tag-manager-and-cookieyes/)? Presumably the new tag will provide Analytics data and consent management and will not precipitate any duplication of data for Google Analytics?
Many thanks.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.