How to Set Up GA4 E-commerce Tracking (Complete Guide)
ฝัง
- เผยแพร่เมื่อ 4 ก.ค. 2024
- So you are running your ecommerce store and everything seems to be working well. However, you would like to know how people are interacting with your products or services. This could seem like a mystery but do not worry since there is a way of doing it with the help of Google Analytics 4, Google Tag Manager, and some technical implementation that Julian will show you in this video. So relax and follow along while Julian shows us how to implement ecommerce tracking on your website.
Are you a reader more than a video person? Check this out 👉measureschool.com/google-anal...
📚📚 Courses and Resources ⏬⏬
Join our premium membership for exclusive content 🦸♀️🦸♂️ bit.ly/measuremasters
GTM, GA4, and GDS FREE Courses 💸 bit.ly/measureschool-courses
Need Personalized Help? Contact Us 📞 bit.ly/measureschool-services
👍 FOLLOW US 👍
LinkedIn: / measureschool
Twitter: / measureschool
Instagram: / measure.school
Facebook: / measureschool
OUTLINE
00:00 - Introduction
00:13 - Overview
01:00 - What is an Ecommerce Interaction?
01:53 - What is a Data Layer?
03:36 - How to Deploy the Data Layer on Your Website
07:09 - Sending Data to GA4
10:42 - Purchase Tracking Example
11:33 - More Information
Want Some FREE GTM Resources?? Grab Yours 👉 bit.ly/gtm-resource
Julian, I bloody love you mate. You have hands down the best content on GTM and GA4 and have been helping me learn so much about GTM over the years and I cannot thank you enough. Your explanation and walkthrough is so easy to understand and you can turn a noob like me into a decent GTM specialist then you’re a miracle worker. Bravo my friend!
Thanks, glad you enjoy
here is the values for the event names. I just copied from the video might save other from doing the same -> begin_checkout|add_to_cart|remove_from_cart|view-item|select_item|view_item_list|select_promotion|view_promotion|purchase
Thank you man, just a small mistake with the promotion one :): begin_checkout|add_to_cart|remove_from_cart|view-item|select_item|view_item_list|select_promotion|view_promotion|purchase
@@lesmanifestes7703 Thanks for the correction, i changed it. cheers
thanks so much
Its all available in the docs. Read the docs people!
@@lesmanifestes7703 Oops, another typo. View-item has a hyphen when it should be an underscore. Here is the correction: begin_checkout|add_to_cart|remove_from_cart|view_item|select_item|view_item_list|select_promotion|view_promotion|purchase
It helped me a lot! Thank you so much man! The only guide that worked for me!
This helped me immensely!! Thanks a million!!
Thank you so much! FINALLY I got my eCommerce set up. Thank you for the clarity and precise instructions.
Is this still relevant? I thought GTM made it so we don't have to deploy new code to the website every time we want to update our tags? Google is constantly making changes and I can never tell if a tutorial is still relevant or not.
Hi, do you know what to do if the debugview doesn't show any data?
Wow. Thanks for this great video. Subscribed and smashed the notification button.
Thank You so much ! Really appreciate your work and already subscribing the channel.
hi there - do we expect gap in transaction between GA4 and UA? I have approx 5% more in GA4. Not sure if is a expected behavior or not... thanks!
Event list:
begin_checkout|add_to_cart|remove_from_cart|view_item|select_item|view_item_list|select_promotion|view_promotion|purchase
Huge thank you for this one. Very exciting!
Thank you for the very helpful video. I have created several events in GTM and then marked them as conversions in GA4. The event names are individual and the information is all stored. However, under ecommerce purchases, I don't see the total sales even though they are transferred correctly. I have checked this in GTM preview and also in GA4 debug mode. Only sales come in when I use the event name = purchase. But since I sell games/vouchers, I have created 2 events of my own with all the data from the event that is needed. Here, however, the total sales are not displayed as if I use as event name = purchase. What do I need to set or extend so that my created events also send the total sales to the GA4 overview e-commerce purchases?
Thank you for this video, easily explained and well done
Excellent tutorial. Thank you for all your videos.
Hello, thank you for the tutorial ! I have a question. Which plugin should I use with Odoo ?
Better explanation than anyone else. Thanks
Super helpful! Thank you so much.
Hi Julian, thanks so much for your video!
Hey, dumb question but does this also work when you're using the storefront API for a custom externally hosted shop UI?
Hi Julian, thank you for the video it's extremely helpful. I'm only seeing items show up in the event of a purchase. Add to cart, view item, etc only show event parameters and user properties. Any idea what I misconfigured during set up?
perfect guide, thank you
Thanks Julian for such a nice and straightforward tutorial. I have a question: What happens with cookie consent in that case? As far as I know the cookie consent block users to be tracked by GA4 if they do not accept the cookies. However, should every event created with GTM not trigger if the user rejects cookies? There is a gray area around the topic and I am not sure if I should add a consent condition to all my events, including the ecommerce one just created. Do you have an opinion in this matter that could help me? Thank you in advance.
Thanks for sharing julian. Where can I find the sheet in the video?
Hi Julian Great Video 🔥 Can we get the access of the Google Sheet which you have shown in the Video??
Thank you for the video! Maybe you have ideas why there is no transaction value in GA4 despite correct data layer implementation? Thanks for all the ideas, I have tried everything
Great video! Can I confirm if you have to set up 'make a purchase' for every item on a website? So for example if you are selling four different types of tickets, you will need for different data layers? Thank you!
Thank you for taking the time out and making this video. I have a questiom, why do the item's price has so many zeros in GA4 debug mode and it shows correct on tagassistant?
I noticed when you were adding ecommerce recommended events you didnt add all of them (such as add_shipping_info or add_billing_info... Would those also come through accurately if added? Im interested in those metrics as well.
Btw tha ks so much for this video, extremely helpful and after floundering a while in GA4 documentation, I now feel excited to implement this!
Hi! I only have Items viewed, Items added to cart, Items purchased and Item Revenue in the report. How do I get all the other metrics in the report and is there a way to add custom dimensions in wordpress?
Thanks! I've followed your steps, but unfortunately no revenue is coming in yet (e.g. adding to cart works). The data layer uses a 'purchasev2' event. That's why I added that to the trigger. Only I don't see any 'items' at the Purchasev2 event in DebugView. Am I missing a step?
Great information video. What will be the process for the Shopify store to get the each and everything data. ?
Much love dude.
As always Julian rocks.
hank you so much for sharing this
Nice Tip👍🏻
Hi Julian thank you so much for this very helpful content. I strictly followed your configuration but I have a small problem - when I go on a product page the view_item event at the beginning is not recognised by the data layer. Just if I click on some product features or I add the product to the cart then the view_item event appears. I think it is a problem with the gtm4wp plugin...do you have a solution for such a problem...thank you so much if you can get back to me :)
do you have a version of this video for shopify stores?
Hello! Do you have a course for all things related GA4? I want to learn the tool but it's hard to practice the concepts if you don't actually have an ecommerce site. On your video I saw that you have a dummy site, that would be the perfect place to practice. Do you have a hands-on course? Thanks!
What would you suggest if in the GA4 debugger I can SEE the purchase event occur, AND i can see all "Event > parameter" and "Items > Product Name" details being passed from the dataLayer, but the item name isn't showing in my Ecommerce reports?
Hi. I wanted to track the performance of my homepage banner ( Clicks). There will be multiple banners on my homepage. What would be the best approach to record this in GA4
How do you have those conversion rates metrics?
It is not working for Shopify? Because in debug view I only can see the purchase event
Hi Julian ,This was very helpful ,Can you share some information on how can we use GTM and GA4 with salesforce or salesforce experience cloud
can you share the link of google document that you are showing in the video
Well if a customer adds multiple products to the cart then how can we add the previous added to cart item in an array? or is it not required to do?
I don't see the 'items' column in my Google Analytics Debug View. I only see 'Parameters' & "User Properties'. Do you know why?
Hi Julian, I have one question, I thought that google analytics 4 had already a purchase conversion established from the beginning, so would I need to create this one? It's a little bit confusing...Thanks!
I have the same thought, but I am not seeing any monetary value in our reports as well. I implemented what was instructed here and hope to see results in the next few days.
@@johndev2594 did it work?
Great video Julian, do you have any video that include google ads tracking + enhanced conversions?
yes, we do have a video
@MeasureSchool, everything works as it should except in debug it does not show the purchase. (It shows up with the correct data being sent in tag manager though) Not sure what to do or if I need to worry about it. Thanks for the great content!
Hi why some of the events shows in GA4 ad example view_item, but the begin_checkout doesn't ? Thank you this tutorial was extremely helpful
Thanks for the video Julian. Is there a similar datalayer plugin/app for Shopify?
yes, check in the Shopify app store
Can this be set up without the plugin?
I added all in one event like purchase|add_to_cart|etc|. But conversion value is not sent to my google ads. How can i add conversion value?
So what are your thoughts on Woocomerce's own google analytics plugin?
is there any chance to get this datalayer template?
This was incredible thank you. Saved me Hours trying to work out why the e-commerce analytics weren't working. I have a problem though. Everything is firing and showing up in debug and preview EXCEPT view_item. Even view_item_list shows up, just not the actual item I'm looking at. Purchase works fine as shows item name and ID. Anyone have any ideas why this might be?
@5:47 the main page of the settings of gtm4wp plugin can be seen and the option Container code ON/OFF is set to off. For me it was set to off by default but when i load a frontend page and use Tag Assistant it says no tags found. When I change he option Container code ON/OFF to off all works as expected, Tag Assistant shows GTM & GA4 tags.
this is because we don't use the plugin to deploy GTM.
Can you follow this up with a video/resource explaining how to set up and see all of these ecom events in GA4? I’ve had our developer follow the instructions exactly and it all looks fine in GTM and the debug view in GA4, but we aren’t seeing them in “Events”.
Thank you
In GTM all the events are triggered & I've published the tags successfully. But, when Am viewing in debug view.....all the events are not fired? How to fix or approach?
I'm having trouble with the accuracy of numbers. The figures for 'Purchase' and the Monetization Overview align at $43k each. However, there is a substantial disparity in the 'Ecommerce Purchases' Report, where the item revenue is recorded at $235k. While I acknowledge that Ecommerce Purchases may not factor in product discounts, the extent of the variance raises concerns. What could be the issue here?
Is this something when i do not see the events coming in the "debug view". It is no info there, everything else is okay..
Great vid. can the tag and trigger setup work without doing the data layers codes?
No, because you have to send the data about your products.
Great video. What about Google ads?
GTM got rid of the GA4 configuration tag type and now uses the "Google Tag" which is really getting me confused as I follow your set up and also follow the setup thru GTM4WP. It doesn't seem to be interchangeable. Maybe you can help me understand this. Thank you!
Hi everyone! At any moment the purchase event appears faded in G4. instead it appears in GTM and real time. Has the same happened to anyone? how can i fix it
Hi! What if i don't see any data on the debug view? Can someone help me please?
Even after adding the given all events, that report not working for me, pls help me
where i can get the sheet for the codes
great you are
Can I get the source code for demo website ?
I would be adding, that this is relevant to WordPress ecomm setups only, since this uses the plugin. If you were on another platform, the approach is different and depends on the platform, if they have integration or not.
Yes, you need to add the dataLayer, but everything after that is not specific to Wordpress
@@MeasureSchool precisely. The plugin gives you the ease of populating the datalayer. If someone was not using WordPress, it would be manual or another plugin. That's all I was mentioning
@@ryanwanx answered my question exactly, so I would need the plug-in? I am always hesitant to add more plug-ins, will this slow down more my site?
was the debugview in GA4 removed? I am not seeing it in my end. Thanks for anyone who answers.
Hi John, they changed the interface a bit. It is moved to Admin --> Property (2n column). You should scroll down to find it.
Can you install the plugin and then get the data and setup variables - after that remove the plugin?
No, the plugin needs to be installed to have the dataLayer working
How to solve the problem of the price in debug mode? It shows the price without variables. for example not 24,32$ but 243200000
This is how GA4 processes the data: DebugView shows currency values converted to a high precision integer but you will see normal values in your report so no need to fix anything.
@@MeasureSchool thank you!
Definitely separate the custom events in GTA manager. If not, you’re gonna see all conversions. Combine giving you un realistic numbers.
didint work for me, debug view :?
I don't have "monetisation". Please help me !
The page you show from Google that shows the datalayer code no longer shows datalayer code. It now shows gtag() code
Good to know. There is surely a dataLayer version out there
@@MeasureSchool I read that gtag() is a data layer push
You didnt mention about the variables which is needed for each transactions
He used the e-commerce dataLayer
you made simple things very complicated. Still thanx.
GTM4WP no longer working properly! Not triggering in GTM!
really?
Anybody else have this issue?
It is not working
There is no more GA4 configuration
Check out this video: th-cam.com/video/6Ps5ZhKOiHs/w-d-xo.htmlsi=CfoSK5jtE0lQwXwI
Hey Julian, followed every single step successfully but when I preview it, none of the events are shown up and the custom event tag isn't fired at all.. Where did I go wrong?
You trigger might be off. Or more likely the website may not containing the needed data layer. Make sure the data layer contains all the right event names: purchase, etc.
didint work for me, debug view ?
Thank you , great tutorial!
Thank me later:
begin_checkout|add_to_cart|remove_from_cart|view_item|select_item|view_item_list|select_promotion|view_promotion|purchase
Thank you