Hi GP Team,
I am trying to migrate from Google analytics to Google tag manager and wanted help on what’s the best way to go about it in Generatepress
I currently have the Google Analytics tag implemented using GP Hook Element-wp- head.
For GTM implementation, I was referring to this GP article
Do I need to replace the existing analytics tag in Hook element with the GTM tag referred to as first block of code in the article (to be added under wp-head). Pls see extract of code posted in private area (even this GA code mentions gtag.js but this was set up only using GA account)
Or do i need to add the GTM code separately by creating another wp head element, while retaining the existing Google Analytics tag element as it is. I have heard this can lead to duplication and existing GA code ) needs to be replaced with GTM header code, but not sure and want to keep the GA history intact.
Would appreciate your help here.