#everything-marketing

Thread

Jocelyn Dunkley April 19, 2024 at 01:29 PM

Shopify GTM vs google analytics question:
I have a store that has 2 GTM scripts in their code. I will remove one of them for sure but they also have google analytics connected in the Google & Youtube sales channel. Would this be considered duplicating analytics data? Should they only be using 1 GTM script that’s in the code and no google analytics, or vice versa?

Zachary Cannon April 19, 2024 at 01:32 PM

yes as you’re unnecessarily loading scripts with two which can slow down the site. Either go for the google sales channel OR a custom implementation if you want to a custom setup

Jocelyn Dunkley April 19, 2024 at 01:48 PM

there’s no custom GTM events in the code, so would I need to add custom events if I choose not to do the google sales channel?

Zachary Cannon April 19, 2024 at 01:51 PM

Yes - though cant remember off the top of my head what best practice is for coding shopify events, whether to use GTM or hard code them !

Jocelyn Dunkley April 19, 2024 at 01:52 PM

thanks Zac for your help regardless 🙂 hopefully someone else can chime in

Zachary Cannon April 19, 2024 at 01:55 PM

https://www.optimizesmart.com/install-google-analytics-4-on-shopify
this is a good guide
depends if you want additional custom events or happy with out of the box, or need to use GTM to fire additional tags

Anubhav Narula April 20, 2024 at 06:57 PM

@Jocelyn Dunkley You can do debugging in GTM preview - It's really good these days and doesn't require any login