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?
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!
Videos
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!
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!
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.
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 -->
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!
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:
-
already installed GA4 through Shopify (simply by pasting our Measurement ID)
-
installed GTM directly in the <head> and <body> of our website
-
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?
Hello,
Which is the best way to install GTM in Shopify?
// LE: thank you all
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 -
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
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 -
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.
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!
So I installed Google Tag Manager onto my Shopify store... now what?
I mostly find articles pertaining to how to install it but nothing really past that.
So Google tag manager helps you to organize your tracking codes ( like Google analytics & Facebook pixel) in one place. In addition, you are able to install costum events on your site which can be monitored via Ga ( Google analytics). For example you can configure that gtm (Google Tag Manager) should track certain button clicks on your page.
For practical advice for you: Install your pixels via gtm and create a goal in Ga. I'm assuming your an e-com store, so a typical goal for an e-com store looks like this. Product Page -> Cart Page -> Checkout -> purchase.
Now you are able to track your purchase funnel on your site and you are able to identify certain loopholes in that process which you might want to optimize.
An awesome resource to look for more information is this Yt channel here ( No I'm not affiliated with this guy) https://www.youtube.com/channel/UClgihdkPzNDtuoQy4xDw5mA
Hope this is helpful
You can take help from this post- https://www.vinayrana.com/blog/what-is-google-tag-manager/
I'm on the regular Shopify plan and hope to implement some datalayers later. Appreciate any guidance. Thanks!
Unfortunately I think shopify doesn't work well with gtm, you have to input your ga ID into shopify directly
You can add GTM for non-GA purposes but unless you have a very specific GA need that’s outside of the native integration I STRONGLY suggest letting Shopify’s native GA integration handle the GA.
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
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! 📩
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?
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!
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?