Version 1: Create a DataLayer in Shopify for GTM (GA4, Enhanced Conversions, Google Ads)
ฝัง
- เผยแพร่เมื่อ 12 เม.ย. 2024
- 🔹 Buy Now: triangledigtalstore.myshopify...
Unlock the full potential of your Shopify store with Google Tag Manager (GTM) and Google Analytics 4 (GA4)! In this detailed tutorial, I'll guide you step-by-step on how to set up a GTM Data Layer specifically for Shopify, tailored for enhanced ecommerce tracking, conversion tracking, and enhanced conversions. Whether you're aiming to improve your marketing strategies or optimize your sales process, this guide has you covered. Plus, I'll provide all the necessary code snippets and a ready-to-use GTM container to get you started immediately. Don't miss out on elevating your ecommerce analytics game!
📝 What You Will Learn:
- How to integrate GA4 with Shopify using GTM
- Setting up enhanced ecommerce tracking
- Implementing conversion tracking and enhanced conversions
- Practical tips for deploying your GTM container effectively
👍 Like, Subscribe, and hit the Bell icon to get more tutorials like this. Feel free to drop your questions or feedback in the comments below!
Files used: forms.gle/QwKQdcEpfWbfoGCx9 - วิทยาศาสตร์และเทคโนโลยี
Thanks so much for this, Alessandro!!! I've spent hours trying to get the tracking working on my site and this has worked perfectly. Amazing!
no worries.
Amazing video! Thank you very much!
No worries.
This works amazing, i have a big problem with that tags but this give me light for the solution, thanks!
Great! Check out the Shopify pixels video for the most future proof solution because Shopify will be removing the additional scripts area next summer.
awesome video
Thanks man, the checkout section (the additional scripts area) in this video is being deprecated by shopify next year. This video shows the updated approach.
th-cam.com/video/CnLOo7qfB74/w-d-xo.html
wow, what a great free resource. Thank you. Very kind of you to share. Do you have a list of all events that the data layer pushes?
Thanks! It pushes all of these: developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm
@@Alessandro-Colarossi makes sense. Do you do any freelance work?
I have set up Enhanced Conversion Tracking & Dynamic Remarketing for GADs as well as Ecommerce Tracking in GA4 using GTM. I am very certain that everything is set up correctly on GTM side. However, I have a GTAG configuration tag for GA4 within GTM and I am concerned it is sending duplicate events post uninstall of Google Native Integration to my GADs account despite removing the conversion events it installed.
I'd like someone like you to briefly pop under the hood and ensure everything is set up correctly and that duplicate events are not being fired in GADs.
Hey! Thanks for the video.
what should I do if dataLayer only considers the price for the first product option while the second option with a different price was selected?
What is your website address and are you using the dataLayer code in this example?
Hi Alessandro! Thanks so much from Chile. Quick question, why didn't you add GTMs piece of code that is supposed to go in the Body part of the theme file?
Right after
Have a good one! Thanks for watching - stay subscribed!
Hi Allessandro, on your "shopify-Datalayer", there are 2 files, non pixel and customer events pixels implementation.
When do we use which ?
For this video tutorial it's non-pixel.
Awesome video! Question: will any of the native integrations between GoogleAds or GA4 & Shopify cause a dual-tagging issue if using this setup? If a Shopify store has already been integrated with Google Ads, what do we need to delete/change to avoid dual-tagging?
Yep, if using this method best to disconnect the GA4 and google ads conversion tracking integrations in Shopify to avoid double counting. This is a much more comprehensive approach - GA4 includes enhanced ecommerce and Google ads conversion tracking includes enhanced conversions.
But also, worth mentioning that this method: th-cam.com/video/CnLOo7qfB74/w-d-xo.html is the most future proof way to tag a store as the checkout area (additional scripts) section in Shopify is being deprecated-I know a lot of folks have tags in this area. In the future, the new customer events area/pixels area will be the only way to do it.
"As of August 28, 2025, checkout.liquid for the thank you and order status pages will be turned off and no longer supported. This also includes turning off apps using script tags and additional scripts under the post-purchase and order status pages."
help.shopify.com/en/manual/checkout-settings/checkout-extensibility/checkout-upgrade
Thanks for your video but unfortunately, it's not possible to add a script in checkout page. This service will be deprecated at the end of 2024. Do you have another solution ?
Yes, check this out: th-cam.com/video/CnLOo7qfB74/w-d-xo.html
Don't forget to share it and subscribe to the channel!
Very helpful. Alessandro, Shopify announced that they will depricate the use of additional scripts from checkout and GTM should be placed in settings- customer events. When we create a new Shopify store the additional scripts section from checkout does not work at all. Can you show how can we add GTM and dataLayer there? Thank you! 🙏
You're right, according to Shopify:
As of August 13, 2024, checkout.liquid for the information, shipping, and payment pages will be turned off and no longer supported.
As of August 28, 2025, checkout.liquid for the thank you and order status pages will be turned off and no longer supported. This also includes turning off apps using script tags and additional scripts under the post-purchase and order status pages.
So we've got till August next year to use what I'm presenting in this video. In the meantime I'll look at converting my checkout.js file into customer events. Stay tuned.
I would alos like to see this.
@@Alessandro-Colarossi thank you very much! You bring so much value through your videos!
@@alinaepopa Thank you :)
@alinaepopa Here you go: th-cam.com/video/CnLOo7qfB74/w-d-xo.html
Awesome work honestly ...was wondering if anyone can help, ....am not capturing any event related to cart or checkout
No worries. Check out the pixel video, it's more future proof than this one. Shopify will be deprecating the additional scripts area next year.
@@Alessandro-Colarossi can I have your email for work suggestion
@@ahmedalnakabassi7985 me@alessandrocolarossi.com