Google Tag Manager Ecommerce Tracking: GA4 Event Tag & Google Ads Conversion Setup
Vložit
- čas přidán 8. 07. 2024
- Learn how to set up ecommerce tracking in Google Tag Manager (GTM) to enhance your Google Analytics 4 (GA4) and Google Ads reporting capabilities. In this video, we’ll walk you through the steps to implement GTM ecommerce tracking on your website. You’ll learn how to configure a GA4 event tag to send ecommerce data, such as viewing items, adding items to the cart, and purchases, directly to Google Analytics. Additionally, we'll guide you through setting up a Google Ads Conversion Tracking tag to send purchase details to Google Ads, helping you optimize your ad campaigns. By the end of this tutorial, you'll be able to track ecommerce actions in GA4 and track the success of your Google Ads campaigns. Let’s get started with Google Tag Manager ecommerce tracking and unlock the full potential of your GA4 and Google Ads setup!
YOUR EXTRA RESOURCES:
○ GTM tutorial series - • Google Tag Manager Tut...
○ Shopify tracking setup - • Install Google Analyti...
○ WooCommerce tracking setup - • Google Analytics on Wo...
○ Fix Squarespace ecommerce tracking - • Fix Google Analytics 4...
○ Get the pre-configured GTM ecommerce container - lovesdata.co/gtm-ecommerce
○ Our courses - www.lovesdata.com/courses
JUMP TO A TOPIC:
00:00 Introduction to ecommerce tracking
00:47 Setting up ecommerce triggers
03:44 Setting up GA4 event tag for ecommerce
06:10 Previewing the data layer for ecommerce
08:38 Setting up ecommerce variables
11:08 Setting up Google Ads conversion tag for purchases
13:13 Next steps
Join our courses: www.lovesdata.com/courses
Subscribe to our CZcams channel: czcams.com/users/subscription_c...
Thank you so much for the new content ben! Insightful as usual!❤
I'm so glad you liked it!
Interesting video Benjamin .
Thanks for sharing your work style.
I'm glad you like it!
Hi Benjamin, would you be able to do a video on how to set up Bing (Microsoft Ads) UET base tag + subsequent conversion goal tags in GTM? Thank you for your videos, I've been binge-watching them, and they've been an absolute GODSEND for me getting my e-commerce sites set up using Google Tag Manager.
I'm glad you like my videos! I'll add your suggestion to my list of requested topics.
@@LovesData I would love this as well as there is not much content out there. Also MS seems to do a lot of the work through importing your Google Ads stuff. (Merchant center would be helpful too) Thanks for the great content!
Thank you so much. You are The Best
That's very kind. Thank you!
Thanks Benjamin
My pleasure! Thank you for watching!
4:54 lost here because i don't have that "measurement variable". What should I do ? Which video should I watch to know this ?
Hi Benjamin, Thanks for your video. There is a native integration between Shopify and GA4. Why are you tagging the events on GA4 via GTM?
Thanks for the video! I used to setup variables for every single item that I wanted to capture and the process was so confusing. This way is far better for sure! Can you do a video on how to make this server side? I have already seen your video on sGTM but it seems like lots of things have changed since then. I’m struggling to make my cookie banner, livechat and ga4 tags server side.
Hi Benjamin, thank you so much for your videos. Sorry for my confusion, but shouldn't we update the datalayer first on the website so the e-commerce tracking codes will work on GTM? I tried creating the tags, triggers, and variables on GTM, but it said I need to enable the datalayer on the website. Can you please clarify this for me? Thank you again.
Thank you! I have a question:
Why create an "Ecommerce | Purchase Only" trigger? Couldn't you use the "Ecommerce | All Events" trigger for the Google Ads Purchase conversion tag?
When I create the other Google Ads conversion tags (add to cart, begin checkout, etc.), will I have to create individual triggers for each tag? Why can't I use the same logic as Google Analytics and create a single trigger for all ecommerce events?
Google Ads conversion tracking is different to GA4 events. If you created a purchase conversion in Google Ads and then used the trigger we used for GA4, then your conversion data wouldn't be correct. You would be tracking a conversion for every ecommerce action, not just the purchase.
Hey Benjamin,
Great video, could you please share the Data layer that you used in the setup.
It would be very helpful
It's included in this post (along with some additional options): www.lovesdata.com/blog/google-analytics-4-shopify
Great video, Benjamin! I have a a question. I am currently running google ads search campaign for my products for my ecommerce store with 1 campaign-1 Ad group-14 keywords per ad group strategy with a $20 budget per day for this campaign. I am currently using a mix of phrase and exact match keywords in same Campaign such that they don’t overpay overlap each other. For example, if I have phrase match keywords “gift for Sister” then in this same Ad group I will not have exact match for same keyword like [gift for sister] but I would rather have an exact match keyword like “present for big sister”. Is this strategy of having 14 keywords of phrase and exact match mix a good strategy? How many maximum keywords can I have per search ad campaign consisting of only 1 Ad group? I would really appreciate your response, thanks!
There's no one-size-fits all with Google Ads, but I would typically aim for 5 to 10 keywords per ad group. I cover the basics in this tutorial: czcams.com/video/bNggG3odL50/video.html and I also offer a paid Google Ads Fundamentals Course on my website.
Please create a video for FB pixel ecommerce conversion tracking as well
I'll add your suggestion to my list of requested topics.
Hey Benjamin,
I have a custom website and need to track ecommerce purchases just like you described in this video, but I am stuck at a point because I cannot see the e-commerce object that contains the values in the data layer. Do I need to create an object in my website for capturing the e-commerce data for passing to the data layer? Can you help me with this issue?
On a custom website, you will need to implement the data layer. So yes, you must add this, including the ecommerce object.
@@LovesData Hi Benjamin, this is exactly what I need to know. I hope you could also create a video on how to enable the datalayer on the website in order for the e-commerce codes to work on GTM. Thank you so much for your videos.
You can find links to my videos covering setup for WooCommerce, Shopify, and Squarespace in the description.
What do we do for completely custom coded websites? Shopify makes this insanely easy to get this information but custom coded websites are a different beast. Having issues getting these data layer variables - the tracking drops off for me right after the purchase - so it tracks everything up to that point but then stops once order is submitted and does not fire when the purchase happens so there is no purchase variables for me to look at.
For custom-coded websites you need to install the google data layer yourself, having it push the defined variables you need on certain page loads etc. It's a complex task
@@garyward8542 ah yes, thank you, got that set up I am receiving the Data Layer Variables now - but now I am having issues getting the conversion tag to fire.
As has been suggested, you will need to implement the data layer yourself, including logic to add the correct data layer events, and dynamically pass values for the parameters.
Is this approach specifically and only for Shopify?
No, it's not specifically for Shopify. You just need to implement the ecommerce data layer on your store and this will work.
@@LovesData thank you Benjamin for your help! Your videos are awesome!
@LovesData any chance you could explain how to not get duplicate events (purchase as an example) when having Google Tag and Microsoft Tag?
The most likely causes are; there are duplicate events pushed to the data layer, the tag has been implemented multiple times, or a trigger-related issue. You can find some tips for troubleshooting at www.lovesdata.com/blog/troubleshooting-google-analytics-ecommerce which might help.
@@LovesData thanks for responding! There are two tags as one is for Google Ads and the other for Microsoft. When setting up conversions in Microsoft ads I picked to have it setup their tag in Tag Manger and thus the additional tag.
How could I have one tag do both systems if they are both linked to GA4?
😊
Thanks for watching!