The Google Tag Manager (GTM) app works better on Plus stores. There are tons of pixesl and code a Shopify store could want to add on their site that they need GTM outside of Google and Meta... because a tool they want to use doesn't have an app for Shopify yet. You can also use GTM to build a datalayer and pull data from Shopify and push it to another platform. Answer from fathom53 on reddit.com
🌐
Reddit
reddit.com › r/googletagmanager › shopify intergration vs google tag manager
r/GoogleTagManager on Reddit: Shopify intergration vs Google Tag Manager
May 26, 2025 -

Hi everyone,

I am currently optimising an account for a couple of friends who are using the Shopify CMS to sell his products. In Shopify every Google feature and META (Search Console, Analytics, Google Ads) are linked as of now.

To my understanding and experience, adding a GTM container to the website and add the tags for each platform, for instance the META config, Google Ads tag and the appropriate conversion events. This manual set-up gives greater flexibility and more control, analysis capabilities and reporting.

However, they insist on using the connections made by Shopify with these tools. I do think a new environment with a solid set-up helps them in the future.

What is your take / experience on this and how to tackle such an issue?

🌐
Reddit
reddit.com › r/googletagmanager › question about google tag manager and shopify
r/GoogleTagManager on Reddit: Question About Google Tag Manager and Shopify
December 17, 2024 -

Hi Team,

I hope you're all doing well!

A few years ago, I worked with Shopify. To the best of my knowledge (going back around 10 years), there was no need for Google Tag Manager (GTM) for my online store.

Since then, I've been working a lot with WordPress websites, where GTM is quite straightforward to implement.

My question is: is having Google Tag Manager a necessity for a Shopify site nowadays?

Looking forward to your insights!

🌐
Reddit
reddit.com › r › shopify › comments › okek5p › using_google_tag_manager_properly
Using google tag manager properly? : r/shopify
November 22, 2020 - This subreddit is a forum to ask or seek any information regarding Shopify. Developers for Shopify can ask any code related questions. Store owners can discuss any Shopify issues or success stories. ... I want to run all my tracking through google tag manager if I can.
🌐
Reddit
reddit.com › r/ppc › shopify + google tag manager
r/PPC on Reddit: Shopify + Google Tag Manager
January 24, 2024 -

I have a bit of a frankenstein situation with my shopify store. I integrated Google / GA4 into my shopify using the sales channel.

I also have several snippets of Google code I had to install on my checkout page and theme.liquid file for enhanced conversions, Google ads remarketing, and Google reviews. These snippets are causing some duplicate events as well as slowing down page speed.

To fix, I'm thinking that integrating all code into a GTM tag is the correct route. Is this correct? If anyone has any resources they could point me to, I'd really appreciate it!

🌐
Reddit
reddit.com › r/googletagmanager › gtm & shopify
r/GoogleTagManager on Reddit: GTM & Shopify
January 31, 2024 -

As far as I understand it, the best way of Shopify tracking is by adding the custom GTM "pixel" via Web Pixels, subscribing to the desired events and then pushing the event data to data layer as they happen. And of course then fetching the data via GTM and sending to e.g. GA4, Google & Meta ads.

Whilst this should work fine for Shopify PLUS brands, I'm wondering if the same setup will work fine for non PLUS brands?

If not, what is the most reliable way of tracking for Shopify non PLUS brands? (with the native integration, we can only send data to GA4, but not to Google/Meta ads.)

Thank you!

🌐
Reddit
reddit.com › r/googletagmanager › shopify - google tag manager vs ga4
r/GoogleTagManager on Reddit: Shopify - Google Tag Manager vs GA4
June 20, 2024 -

How does everyone feel about the Google+Youtube integration? I have it live now, and yes it's super easy but I have my problems with it. I was really surprised they are missing I think pretty important events like view_item_list. (It's in the GTM options there, but not in the default integration)

More surprising to me is that it doesn't seem super accurate. Not just a little lower like I would expect, but actually showing purchases that don't line up with the Shopify store. Is anyone else finding this? I wouldn't think there's much I could do to break it on the events it has tbh, but something is consistently off that I can't seem to get to the bottom of.

I'm thinking about going back to the GTM tag in the liquid.theme but I just don't see how that would be any better than a direct integration.

🌐
Reddit
reddit.com › r/shopify › what is a use case for google tag manager for shopify stores?
r/shopify on Reddit: What is a use case for google tag manager for shopify stores?
November 2, 2024 -

What are some concrete exampkes of using goolge tag manager for a shopify store?
The facebook/meta app, and the google andyoutube app seem to already handle all analytics stuff.

As for google ads, I have a store that has this [see below] google ads conversion tracking script in the additional scripts section in the checkout admin. THis additional scripts seciotn will be depracated this year.

If the google and youtube ap can not track ad conversions, then is the only way to do this by connecting google tag manager via cusotm pixed and pushing the requered variables to data layer..etc

<!-- LP conversion tracking -->

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-\*\*\*\*\*\*\*\*\*"></script>

<script> window.dataLayer = window.dataLayer || \[\]; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-\*\*\*\*\*\*\*\*\*\*\*\*'); </script>

{% if first_time_accessed %}

<script> gtag('event', 'conversion', { 'send\_to': 'AW-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*', 'value': {{ subtotal\_price | divided\_by: 100.00 }}, 'currency': '{{ checkout.currency }}', 'transaction\_id': '{{ order\_number }}' }); </script>

{% endif %}

<!-- / LP conversion tracking -->

🌐
Reddit
reddit.com › r/googletagmanager › how do you deal with shopify checkout update & gtm tracking?
r/GoogleTagManager on Reddit: How do you deal with Shopify Checkout Update & GTM Tracking?
May 21, 2024 -

Hey there,

as far as I know there is some kind of update coming to the Shopify checkout, which basically disables the field under Settings -> Checkout that was used up until now to add the GTM container, all kinds of scripts (dataLayer, consent tool...) and other tracking codes.

According to Shopify, if you still want to use Google Tag Manager to set up tracking in that way, you'd have to use this relatively new feature called Customer Events, which basically implements the scripts via a sandbox environment, which means you cannot just copy/paste the whole script. Depending on what type of script you want to add you have to modify the javascript (remove script tags, add a few lines here and there...).

This is the documentation for implementing the GTM container and dataLayer events:

https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/gtm-tutorial

I tried this two times on two different shops. While it was possible to add the GTM container in this way, I was just not successful with getting the dataLayer events implemented into the website even though I was exactly following the instructions.

What are your experiences with this whole issue? Does anybody have- or know of a code piece that I could add as a custom pixel that'll implement the GTM container and the whole e-ecommerce dataLayer? Would be greatly appreciated. In principal, I think it's great to have a possiblity of adding the e-comm. dataLayer without being dependent on a developer or buying an expensive plugin like Analyzify. Unfortunately it doesn't seem to work as expected.

Thanks a lot and best regards!

Find elsewhere
🌐
Reddit
reddit.com › r/googletagmanager › proper way to install ga4 & gtm in shopify
r/GoogleTagManager on Reddit: Proper way to install GA4 & GTM in Shopify
June 16, 2023 -

Pretty much the title and super beginner here. I have no programming background, and the place I work (a small online store) is attempting to set up tracking properly. Unfortunately, we have already made several incomplete attempts before across multiple years, and find ourselves now in a state where we:

  1. already installed GA4 through Shopify (simply by pasting our Measurement ID)

  2. installed GTM directly in the <head> and <body> of our website

  3. also installed an app called Elevar (also through Shopify) and installed some of their pre-built tags in our tag manager. (We thought this would let us skip all the hard work and get all the essential data in a few clicks, but its not worth it for someone like us whos clueless)

We now realize that we need to start from scratch and properly learn from step one, but I am also concerned that removing anything will stop GA4 from collecting some data that we already have (such as purchases, adding items to the cart, etc. ) How shall i approach this?

Top answer
1 of 4
3
The first question you should always ask is, what is our goal, and what are the questions you'd like to answer with GA4? I would suspect your goal at first is just tracking purchases in GA4 to get started? If you connected GA4 to Shopify using their app, and you added GTM to the you should be in an ok place. The default Shopify GA4 integration does not include some ecommerce events, but most. You can also fully build out GA4 integration through GTM for Shopify, but if you and your team are new to this I'd just use Shopify's integration which is sounds like you are. Second, if you want to track other types of conversions in the future it can be worth adding GTM code to the thank you page with a custom event to fire to GTM. For example, if you're running the Reddit pixel. But, I would cross that bridge when I come to it. Third, if you are running GTM and Shopify's native GA4 integration, you'd want to make sure you're also not firing GA4 through GTM. In other words, use GTM for any type of custom events, other ad pixels, etc... but don't fire a page view on your shopify site. Also keep in mind that GA4 is JavaScript based and therefore is affected by ad blockers. So, do not expect your GA4 stats to match your sales in Shopify. They will be 20% or so lower (depending on industry). I would not worry about this, as the purpose of GA4 is for trend spotting, determining return on ad spend (ROAS), figuring out highest convert traffic sources, and more, but it's NOT for sales reporting. I see a lot of posts / comments from people who think their GA4 integration is "broken" b/c it's not reporting 100% of their purchases. That's not the case. Good luck!
2 of 4
2
Analyzify has an excellent tutorial hub with detailed instructions both with and without their app. There's also a video series on their YouTube
Top answer
1 of 12
4
Customer events/pixel and a script in the header for anything else (contact forms etc).
2 of 12
4
So I did this (4) recently. There's a bunch of approaches, listed below. Roughly increasing complexity and cost as you go down 1) Don't use GTM, use default app. Just use the 'Google & YouTube' app (crap name). It can send a decent set of events to GA4 and Ads. Pretty inflexible, but also fine for 90% of Shopify stores. KISS. Most common by far. 2) GTM in theme + default app Using the default (1) app. Also add GTM to theme directly. Lets you biff in a few extra tags, like if you wanted to track some form success submits, or some menu interactions or something via GTM, firing the events to the GA4 tag that is inserted via default app. But you don't have a data layer so it's a pretty simple setup. 3) GTM in custom pixel (only) Remove any apps or GTM code from themes. Create custom pixel in Shopify admin. Chuck the standard GTM head code in it. Grab a template to subscribe/map the available Pixel events (page . Setup some tags to fire. Viola. There are some major limitations with this, because the Shopify Custom PIxel environment is sandboxed (runs in iframe) meaning it can't directly scrape or inject stuff like a normal GTM implementation. But you can still fire tags to a bunch of places. This sucks because you loose most GA4 data. 4) Hybrid: GTM in Shopify Custom Pixel and GTM in theme This can be a technically challenging setup, ideally needs a dev (who understands GTM, GA4 and GAds) to setup robust custom dataLayer added to theme JS code to support GTM. It gets you the 'full' functionality of GTM on all pages except checkout. Then GTM runs inside a Shopify Custom Pixel on checkout pages. Custom pixel is set to only load GTM on checkout pages, so you don't end up with dupe GTMs and events. Works pretty well and possibly best 'free' option, but you have to know what you're doing. Suuucks to debug though because can't see tags firing properly using Tag Assistant. 5) Hybrid via App Some apps will implement (3) for you but instead of custom code in a custom pixel they create a black box 'app pixel' that is essentially the same thing, but you can't control. Costs $10-$100 a month. Can be handy if you are not techy, but want a good baseline setup easily. Can be a bit in-flexible, depends on app. 6) Skip GTM, go server-side app. Similar to (4) but no cGTM. Instead using something like Stape (sGTM) or ProfitMetrics. Much nicer way to tie everything together into server-side events and get increased visibility. Eg Metas CAPI. Elevar and LittleData kind-of fit in here too. 7) Skip GTM. Go full CDP, server-side platform + app. RudderStack or Segment. Similar to (5) but going full CDP. They both have a helper app that also installs a Shopify Pixel. Highly flexible and somewhat future-proof. Seems like where things are heading. RudderStack cheaper, but less common. Segment more expensive, more well documented and supported. More notes: LovesData has a decent video comparing (1) and (2) Youtube video: 5GVIrxZdlPY Should go without saying that the Checkout > Additional Scripts is depreciated, possibly why everyone has this problem around about the same time :) LeoMeasure has a good explainer to set up (4) YouTube tutorial: qNViSdxXq9I ^ in that vid there are links to Github repo and Dropbox for full GTM container. There will be even more approaches that fit between these options. There is also custom, self hosted sGTM, not covered here. Seems unfortunately common that stores are using some legacy or conflicting combination of multiple approaches. So good to recognise this and know the different setups. Things have become waaay more complex than they were like 5 years ago (sadly). Options 6 & 7 will help close the tracking gap, where ITP, cookie privacy, privacy modes or ad-blockers will drop 20-40% of your traffic stats when using only client SCP / GTM / GA4 / GAds It's a real struggle to find this info laid out in a comprehensive way. Everyone wants to sell you something. Also things keep changing, this stuff seems to get out of date every couple of months.
🌐
Reddit
reddit.com › r/googletagmanager › place both gtm and ga tracking code in shopify store
r/GoogleTagManager on Reddit: Place both GTM and GA tracking code in Shopify store
April 17, 2021 -

Hi all, I hope you are doing great.

In the last couple of days, I was looking for a solution to implement GTM through Shopify.

The problem is - Shopify deny access to the checkout pages code for their low tier plans, which means there is only 2 options -

  1. Pasting the GA tracking code through the Shopify admin, and not using GTM at all. This option will allow you to track the checkout and thank you pages

  2. Place the GTM container in the code main theme file and configure GA through GTM. The problem - You can't track checkout pages.

I found this sort of solution after creating around 10-15 shops.

  • Paste the GA tracking code through Shopify admin

  • Paste GTM empty container through the Shopify code main theme file ( and not configure GA through GTM, make it a container only for events).

The problem?

When I have installed on a test shop empty container with no GA tag - only GTM tag, and configure button event clicks -

It sends users, sessions, new users, and some data to the GA account - which will resolve to false data if I also had the GA configure (I am not sure about it, so I would love for your thoughts).

So here is my questions -

  1. Can you configure the Empty GTM container (that will be there only for events) and GA tracking code at the same website? It could cause any issues? (like the one I mentioned above, that the GTM will send some data to the GA account which resulted in false data).I do want to clarify - I don't install the GA through GTM, only through the Shopify admin. And I use the 'enable overriding settings in this tag' - to not do this.

  2. One solution that I thought of is to send the GTM container data to one GA property and send the GA data to a different GA property. I know it will be hard to analyze like that, but it is better than nothing. Is there any downfall to this method? (like inaccurate data?)

Might you know a better way to set up tags with GTM code and GA combine?

*Note - I don't have shopify plus.

Thanks all! Wishes you to keep safe!

Top answer
1 of 4
2
To add GTM to all Shopify's pages including Checkout, you have to set up Universal Analytics using Shopify's native integration, then in the custom JS/additional JS scripts section below that, you paste your GTM code if you remove the tags. This will put GTM on your checkout pages. As you and others have noted, make sure that you don't duplicate your tracking by including the GA or FB pageview tags within GTM.
2 of 4
1
Hey! The best way (and only way!) to get eCommerce tracking on a shopify site is to use the Shopify admin panel to add your GA Property ID. Shopify blocks Gtm at checkout for security reasons so no code can be injected, risking people having their card details stolen etc. You can paste the Gtm code in the same panel where you add the GA ID in the "additional javascript scripts". That will enable to set up tags for all kinds of tracking... But again, it won't work on checkout. If you are also considering using FB I suggest using the shopify integration as well for the same reason as the GA There won't be any issue with you having GA events firing through GTM and using the shopify dashboard to install GA for pageviews + eCommerce data... Just make sure you don't so fire a page view from the GTM container otherwise it will double count :) So in short: Add GA in the shopify dashboaed for eCommerce data, paste the GTM container in the setting just below it, set up events in GTM as normal :) Oh and also you can use the same GA property for the dashboard installation and GTM installation, you won't have any problems at all :)
🌐
Reddit
reddit.com › r/shopify › google tag manager
r/shopify on Reddit: Google Tag Manager
December 13, 2023 -

Is there a app to have my google tag on my site? Maybe it's just early in the morning, but I can't understand where to put this code, or my number I'm getting from google adwords. I know there is a difference between analytics and Google tag manager, and have my G4 setup just fine. Was being told by google adwords that I need "Activate measurement with a Google Tag A Google Tag allows you to measure activity on your website", when I follow the setup I get my code.

Thanks for the help!

Sincerely, Need Coffee

🌐
Reddit
reddit.com › r/analyzify › understanding google tag manager (gtm) and shopify checkout🛒
r/Analyzify on Reddit: Understanding Google Tag Manager (GTM) and Shopify Checkout🛒
December 13, 2021 -

For Shopify store owners, the importance of tracking and optimising checkout pages cannot be overstated. These pages serve as the gateway where visitors transition into customers, presenting a prime opportunity to increase revenue and foster loyalty.

However, measuring and improving checkout performance can be a challenge. How can you effectively evaluate what works and what doesn't?

That’s where adding Google Tag Manager (GTM) to Shopify checkout comes in handy.

We have created a comprehensive guide on how to add Google Tag Manager to Shopify checkout. In the guide we cover everything you need to know about using GTM on Shopify checkout. Here's a sneak peek of what you'll discover:

🔍 What is GTM and its benefits: Learn how GTM helps you easily manage tags on your website and collect detailed information about user behaviour. Custom event tracking in GTM allows you to track the most valuable ecommerce events in GA4, providing valuable data for your marketing and conversion optimization strategies.

🌐 Using GTM on Shopify: Explore the advantages of using GTM on Shopify, including enhancing site speed, accessing preview mode for testing and debugging tags, ensuring data accuracy and reliability, and simplifying the tag deployment process.

🔢 How to add GTM to Shopify: Get step-by-step instructions on adding GTM to Shopify checkout. We'll cover two methods: using the "checkout.liquid" file (available for Shopify Plus plan users) and adding GTM to the order confirmation page (for non-Plus store owners).

💡 Optimising your checkout pages: Discover how GTM empowers you to track checkout steps and funnels, optimise your checkout pages through experiments and tests, and retarget abandoned checkout users with relevant ads or offers.

Don't miss out on the opportunities GTM offers to improve your ecommerce performance. Whether you're a beginner or an expert, this guide will help you level up your ecommerce game!

Read the full guide here!

Note: The blog post provides in-depth information, detailed steps, and additional insights to help you maximise the benefits of GTM on Shopify. It's a must-read for Shopify store owners looking to optimise their checkout process and enhance their ecommerce analytics and marketing strategies.

Let us know if you have any questions or share your experiences with GTM on Shopify in the comments below! 📩

🌐
Reddit
reddit.com › r/googletagmanager › best latest gtm setup for shopify?
r/GoogleTagManager on Reddit: Best latest GTM setup for Shopify?
August 19, 2024 -

I followed Analyzify’s DIY setup to track conversions for 2 years and then with Shopify’s latest changes to pixel events, there wasn’t any updates configuration/tutorials but luckily Feed Army had a solid solution. Curious if there’s any best setups available that everyone is using? And if there’s one that you recommend as well for tracking GA4 events?

🌐
Reddit
reddit.com › r/googletagmanager › problem with ga4 e-commerce tracking on shopify via google tag manager
r/GoogleTagManager on Reddit: Problem with GA4 e-commerce tracking on Shopify via Google Tag Manager
November 26, 2024 -

Hello everyone,

I'm having a problem setting up advanced e-commerce tracking on a Shopify site using Google Tag Manager (GTM) and Google Analytics 4 (GA4).

Description of the problem:

Missing events: When I use GTM's preview mode to test my implementation, I find that when adding a product to the cart, specific events such as add_to_cart or view_item are not fired. Instead, only the form_start and form_submit events appear. I don't have any events related to ‘item’ or the expected e-commerce tracking.

Intermittent loading of the GTM container: In addition, I've noticed that when browsing the site during preview, the GTM-XXXXX container sometimes loads and sometimes doesn't, even when remaining on the same home page. This inconsistency makes diagnosis even more difficult.

What I've already checked:

Presence of GTM code: The GTM container code is present on all pages, placed immediately at the end of the <head> tag in the theme.liquid file.

Cache and extensions: I've cleared my browser's cache, tested in private browsing mode, and disabled any extensions that might block scripts (such as ad blockers), but the problem persists.

Cookie Consent: There is no cookie consent banner or CMP that could prevent the GTM from loading.

Additional information:

Shopify Theme: The site uses a custom theme. I have not made any recent changes to the theme that would explain this behaviour.

Third-party applications: No third-party applications or scripts have been added or modified recently.

Other working site: On another Shopify site I manage with a similar configuration, e-commerce tracking is working correctly, including add_to_cart and view_item events.

My questions :

Missing e-commerce events: Why are specific e-commerce events such as add_to_cart or view_item not being triggered when the corresponding actions are taken on the site?Do I have to manually configure the data layer for these events on Shopify? If so, how do I go about this?

Intermittent GTM loading: What could be causing the GTM container to load randomly, even on the same page? Are there any specific settings to check or known Shopify issues that could explain this behaviour?

I would be very grateful for any help or advice you could provide. Thank you in advance for your time and expertise!

🌐
Reddit
reddit.com › r/shopify › shopify's ga4 integration or gtm?
r/shopify on Reddit: Shopify's GA4 Integration or GTM?
March 12, 2023 -

I'm a newbie here. Do most of you use GTM for tracking? I've already installed GA4 through the "Google & YouTube" app on Shopify, and it was done with just a few clicks. From my understanding, using GTM can allow me to track even more things, but it also needs to be set up independently. I've already installed Facebook, GA4, and Google Ads tracking individually with Shopify. If I switch to GTM, does this mean I'll have to first remove all of those previous installations? I don't have a tech background, so I'm concerned about handling this properly. Following the guide to install from scratch seems straightforward, but when it comes to removing all the previously installed pixels and the like... I'm not sure if I can do that cleanly. Has anyone done this before? Would you mind sharing your tips and experiences?

🌐
Reddit
reddit.com › r › GoogleTagManager
Google Tag Manager
June 29, 2015 - I’ve recently connected Google ad, Google merchant, Google analytics to my Shopify store through the Google and YouTube app.
🌐
Reddit
reddit.com › r/googletagmanager › [deleted by user]
Does anyone have experience adding GTM to Shopify ...
February 12, 2023 - To use Google Tag Manager with checkout extensibility, follow the steps outlined in the custom web pixels tutorial for Google Tag Manager. ... Please use native integration of Shopify with GA4 using the Google App. For all my Shopify clients, that is the best way of setting up GA4 reporting ...