If you've previously set up Google Tag Manager on your site, you will need to remove your old implementation to prevent duplicate tag firing.

The two most likely methods you've implemented GTM previous are:

Via your theme.liquid

You can verify this by going to your Admin > Online Store > Themes > Current Theme > Actions: Edit Code > View theme.liquid file

You should have two instances that need to be removed:

  1. The global <script> In the head
  2. The global <noscript> at the bottom of the body

Here's what it would look like in the head:

And here's what it would look like at bottom of the body:

If this is how you have GTM implemented, then you'll need to remove these AFTER you have our GTM container imported and the GTM configuration ID setup in the app settings here:

Via Google Analytics additional settings

The other common method that many Shopify stores implement GTM is via the additional script settings for Google Analytics which is found in Admin > Online Store > Preferences:

If this is how you have implemented yours then you can simply remove this and Save.

Did this answer your question?