Shopify: Ultimate Google Analytics 4 & Google Tag Manager Setup
HTML-код
- Опубликовано: 7 сен 2024
- The ultimate guide to setting up Google Analytics 4 (GA4) and Google Tag Manager (GTM) on Shopify in 2023.
I will show you everything from A-Z, including setting up conversion tracking and importing the conversions into your Google Ads account.
Get Shopify here (my affiliate link): dominatemarket...
LEARN HOW TO BUILD PROFITABLE GOOGLE ADS CAMPAIGNS FOR JUST $49 PER MONTH: www.learndomin...
Want us to get you GUARANTEED results with Google Ads? Book a call here: www.dominatema...
Finally!! I have been going across so much content and google documentation to set up clear conversion tracking on google ads from my shopify website. There are so many ways that it confuses you, and some ways have become old. Somewhere in between I setup Google merchant centre also, currently i dont know whats its exact use. But you solved the conversion tracking part for me!! ThanksMan, Liked and Subscribed 👍
Glad to hear it helped!
Hello mate. I want to send a heartfelt thank you to you for this video! I've had campaigns set up since 2020 and my performance has been good, but I'm now convinced I had conversion tracking set up incorrectly the whole time. Since tracking conversions via Analytics I'm seeing more accurate and quicker data in my ads account which actually matches up with sales I'm seeing through my Shopify stores. It's very early days but my campaigns have all of a sudden got more profitable and volume is picking up - I'll report back in 30 days! Thanks again
Awesome very glad to hear it helped! Let me know how you go.
I love clear and straight to the point videos. Helped me alot
Glad to hear it!
You are the best. So simple and straightforward
Thank you!
Dude, you rule. Thank you for this!
You're welcome!
Damn what a killer tutorial! Saved it for all future stores I will be setting up.
Glad it helped!
I'm really thankful for this video. Thanks a lot!
You're welcome!
Thank you for an easy and fast tutorial man
You're welcome!
Full video of high quality content. Thanks for sharing!!
You're welcome Harry!
Great vid, but a word of warning on the way you've set up conversions in Google Ads, the way GA4 reports conversions is different to that of Google Ads. GA4 has a much more "smart" attribution model, and also takes into account all the other channels feeding into analytics, and awards a portion of the conversion accordingly (i.e. social may have played a part, as well as organic search etc.).
Whereas, Google ads, only has sight on the paid Google products, not other channels, and therefore is a more accurate representation of Google ads performance (not Google ads, plus Facebook, plus organic etc.). So, I'd recommend setting your Google Ads conversions as your primary, and your imported GA4 goal as secondary.
You can then use both to compare performance, so Google Ads conversion for optimisation, and reporting and GA4 for reporting only as it is a better representation of overall digital marketing performance.
Yeah, that's good advice. Appreciate you adding that in.
Best tutorial yet, out of all of them
Thanks Abdul.
Hi, great video!
I have a question I did the same thing but now in Google Analytics I have 2 page views per page for a single user it returns the event 2 times.
What should I do?
Thanks.
Sounds like there might be a doubling up of code somewhere. Did you put the GA measurement ID in the app as well as the header code? If so, that might be what's causing it.
you have another subscriber
Thanks!
Very practical video. very helpful
Glad it helped!
thank you, great video
You're welcome!
Amazing video! I previously setup my GA4 using the Shopify app "Google & RUclips". Should I remove the GA4 property from the app and delete the app if I want to use GTM and your setup?
Hard for me to say without seeing it, but safest bet would be to start clean, yeah.
Great Video! Thank you!
You're welcome!
Amazing explained everything... :)
Glad to hear it helped
Thanks man! This video is a goldmine.
You're welcome!
Awesome tutorial, liked and subscribed. I noticed that when I use a coupon code + gift card + free shipping coupon code in checkout, the total value of purchase shows incorrectly on datalayer (in this case, the total conversion value will show wrong at GA4). I noticed that the gift card information is not applying (the datalayer is not detecting this info). Could you please tell me how can I fix that?
I'm actually not sure about this one. I'll have to look into it, if I find a solution I will let you know.
Super completo este vídeo 🙌🏽 Thank you
You're welcome!
hello thanks for your video, i did everything but I don't see purchase events at the youtube shorts campaign
Hi Noam, what do you mean by "RUclips Shorts Campaign"?
FYI... adding code to the Checkout Page in the 'Order status page section' at 4:52 in your video is now Deprecated. Do you have a video to handle this?
I had this same issue, I used Chat GPT, with the following prompt: "Create the code for this google tag, [insert your google head tag code] as a pixel in Shopify's new customer events. This tag will be on my thank you page after a customer purchase". AI spit out code that I put in Customer Events on Shopify and everything seems to be working fine.
same here
Thanks so much! that was so helpful.
You're welcome!
Awesome man. it helps a lot but can you show how to setup a google remarketing tag for ecommerce businesses with custom parameters
Yes I will look into making a video for this.
Hi, I'm confused so, we now have a GTM as well as the Google Tag loaded (via Google and RUclips App), from my GTM side, there is no purchase event firing, as seen in the tag assistant view under the GTM-XXXXX, however the purchase event does fire from the G-XXXXX tag. In your video, it seems like the GTM fires the purchase event, but what I find is it fires from Google Tag only. Should it be somewhat both?
It should be both. If you installed the Google tag (not the GTM one) directly onto the confirmation page that's why that's firing but the GTM one isn't. Make sure you put the GTM code on the confirmation page also like I showed in this video.
Great video, was almost there. Everything is firing except the purchase event 😞 Can you help me out? I've followed instructions but no luck...
Did you test it more than once? I had that happen once and then when I tested again it worked.
Thank you so much!!
You're welcome!
Thanks, brother! Do you think Simprosys GSF is any better than the native Google & RUclips Shopify app? I've heard the native one is limited compared to the GSF one, is it true? Which one would you recommend using? Thanks!!
I haven't heard of GSF nor have I tested it so I can't comment unfortunately.
hey i fowllowing by your video , i did everything like you said , but the debugview not working icannot see the purchase there. another thing im not sure , if should i delete the convertions linker from google tag maneger , and keep just the google tag , in addition , what about the triggers in google tag maneger, should i keep it empty correct to 2024 and just do it like you done in the video ? im appriciate any help . thank you (:
Are the other events like "Add to Cart" showing in the debug?
I would start clean from the beginning, if you have lots going on you'll probably have some errors.
thank you for importent answering , in the event in google analitycs just the purchse set up as event , but not the rest , however , in the debugview, i can see just the view_page and user_asugment , also in in the tag maneger , i dont see the purchase , not sure if i need to do it manually , through , google tag maneger , that it will show up in google analitycs , as well , thank you for you important answering a i got bit lost with this , and appricate any help (: @@dominate.marketing
Hello this is wonderfull video. Aren't these two methods kind of doing the same thing? I am little bit confused. Thanks!
Are you talking about this video and the other video? If so, yes, you only want to do one of the methods, not both.
I'm not familiar with analytics. Why do you need to do GTM manually when we can just add the GA4 code into Shopify and gets tracking? what difference is GTM vs GA4 in this use-case that GA4 couldn't do/track already?
GA4 can't trigger and track specific events, it can only track the data fed to it.
So if you put it directly into Shopify, it might not track all the events/conversions you want. For example, form submits, phone number clicks and things like that.
GTM is used to send the events to GA4 so it can track them.
If you don't need this, then you can do it directly in Shopify (I have another video showing how to do that).
Hey, really loved your video! Very useful and well explained :) I just have one question - I had already installed the Google Analytics code at the head of the theme. What should I do with the Google Tag Manager's code now, should I put it above that, below or replace the GA code with the Google Tag manager's one?
You don't need to put the Google Analytics code on your website, only the Google Tag Manager code. Then, follow the process I showed in the video to set up the Google Tag in GTM to pass the info to GA4 with the measurement ID and you'll be good to go.
If we use GTM for GA4 for Shopify AND we use the native Shopify integration with GA4, doesn't that duplicate data?
I didn't have that issue by doing it the way I showed in the video.
Why is it necessary to add GA4 tag in the GTM if we then connect GA4 to the shop via Google & RUclips app? I thought it does the job for us.
Because you won't be able to send custom events.
Hi,
You installed GA4 Config tag in GTM, and GTM into Shopify.
You also installed GA4 directly into Shopify.
Won't the data be recorded twice now?
I know GTM is used for tracking emails, calls and form submit, but since GTM is installed in shopify liquid code, and GA4 is also in integrated in shopify, why include GA4 Config Tag in GTM?
I have a client and even if GA4 is not installed in GTM, the custom events such as calls and emails still trigger in debug view since GA4 is installed already in Shopify through the "Google & RUclips" integration.
Let me know thanks!
GTM is what passes events through to GA4. If you don't include the GA4 config tag in GTM then GTM has nowhere to pass the events to.
You can do it without GTM if you don't need custom events (I showed how to do it in my other video). The point of this setup is to allow you to add other events that are not passed by the app.
Not sure how that setup you mentioned is working, but there must be some event trigger setup somewhere.
Thanks a lot man.......
Your welcome!
Such a good video.
Thanks!
Hi Friend, I watched your video because I'm having trouble tracking the purchase event. I followed the step by step guide but when I carry out the various steps in Debug View I don't see the event names like ADD TO CART etc.
Is it firing the tags at all in GTM? Also are you seeing Page Views in Debug at all or no?
Finally! Thanks man \o/
You're welcome!
why can'ti not connect directly from shopify the option they are providing
No idea
In the Analytics overview the purchase conversions is after 24 hours still greyed out, but greyed out switched to the right (like at 12:46) and the count is up. So I think this conversion is already on by default. I was wondering though, could you build a conversion better based on the visit of the "thank you for your purchase page", because what if they cancel the payment during checkout (on paypal for example).
Yes it may well be on by default in some cases.
You could do what you are suggesting with the Thank You page if you are using something like Woocommerce. However I'm not sure if you are able to do that with Shopify.
In theory though the conversion should not fire if the payment fails in the method I showed in the video.
Great but you didn't explain how to set the checkout event for Google Ads / Meta Ads / GA4 etc.
Pretty easy to do...
You need Shopify Plus for it to show.
Amazing
Glad it helped!
When you add ATC/Initiate Checkout as conversions, will those conversions populate under the conversion tab on Google shopping, or will it only show the conversions you are optimizing for?
If you mean on the ads you are running through the Merchant Center, then yes. If you don't want that to happen you can add them as a secondary conversion in Google Ads so that it only monitors them but doesn't optimize for it.
Muito bom
FUncionou tudo
Bom de se ouvir!
Hi there man, many thanks for your video. I need some help maybe you can help me!
I've a migrated my account from GA Universal to GA4, the thing is that I'm missing data from sales, orders and also the checkout process.
With another store, I've followed up the steps that you teach on this video, and everything works perfect, then, I would like to replicate it to my other stores, specially the one that is not tracking good the data.
I'm think of creating a new GTM Container, and create a new GA4 account and link my google ads conversion tracking to this new containt and g.ads 4 account.
What would you suggest me to do? My actuall GA4 is very discordant with my shopify store data, so I want to fix this. Also, it's very important for me to link the actual g.ads conversion pixel, because it's the most profitable channel for me.
Can you please suggest me a solution? Many thanks!!
Roberto!
Hi Roberto. If you used that Migrate feature within Analytics to go from UA to GA4 then I would make a new property and start clean. That feature didn't work to well in my experience, and is probably the cause of your issue. Just make a new GTM container as you said, and a new GA4 property and start clean.
Great video!
I have 2 questions:
1. How do stop duplicate page_view events showing up? I'm guessing one is from Google Tag Manager and one is from the official Google Channel app.
2. How can I associate Shopifys customerID with GA4s User-ID for all my logged in users?
Thanks!
Thanks Alexander. To answer your questions:
1. Sounds like that might be a setup issue, I'm not aware of that being a regular problem. Might be the case if you put the GTM or GA4 code in the Google Channel app as well as GTM, then it might send two.
2. I'd be surprised if you could do this considering Google's push towards more privacy. Possibly a method does exist, but I'm not aware of it at this point in time.
I'm with the same problem you said in question 1.
@@thauanpereira7259 Double check that you definitely don't have the code twice somewhere on your site.
Hey! Thanks so much for the video, it’s great! I actually have the same problem with duplicate page_view events and it looks like you have the same in the video. I believe it comes from having the google tag in the page code and also the Google&RUclips App on shopify. If someone figures out how to fix it, it would really help. Thanks
@@Paula-jq5bo I will investigate further, but yes it does sound like a duplicate code issue.
What if I update the shopify theme? wouldn't I lose this changes?
Just make sure all the codes are in the new theme file.
When i click debug view i get a message saying internal error
Sounds like an issue on Google Analytics' side. I've never seen that before.
I think i did everything the way you showed in the video, but instead of add_to_cart i see form_start in the tag manager. And after a purchase i don't see the purchase event in the analytics debu mode. Any idea what might be wrong?
Did you connect the Google & RUclips App in Shopify? Sounds like that isn't installed so the events are not passing.
@@dominate.marketing thanks for the reply. Yes i already had the google & youtube app installed. i had it connected with google ads and merchant center and was running a campaign. I never saw a purchase conversion though, so that was what i was trying to accomplish. I didn't have the tag properly setup, i have now i think, thanks to your video. i see all the events now in the analytics debugger, except for the purchase, that shows as a form_start event.
@@robbertdezeeuw1198 Message me privately and I'll take a look into this for you.
I am also facing this exact problem as well - any reason why this happened / how to fix the issue? Any help / info much appreciated :)
@@JosephGarni-dk8xf I am looking into this and will let you know. Might make a video on it depending on what the issue is.
Great tutorial but damn, why the hell Google has to make it so complicated? Extremely confusing
Tell me about it, no idea why they chose to do it this way.
why you are doing all this so fast
Thank youfor this great tutorial.
You're welcome!