Google Tag Manager
By:
Raj Gurung
Published On :
March 5, 2024
Google Tag Manager (GTM) is a powerful tool that allows you to measure and optimize your website’s performance, conversions, and user behavior. One of the most important metrics that you can track with GTM is purchases, which indicate how well your website is generating revenue and satisfying your customers. In this article, we will show you how to set up purchase tracking with GTM, using the Enhanced Ecommerce feature of Google Analytics. You will learn how to create and configure tags, triggers, and variables, as well as how to test and debug your purchase tracking implementation. By the end of this article, you will be able to track purchases on your website with GTM and gain valuable insights into your online business.
To set up this tracking, firstly you need to setup few things-
Please see the [[Data Layer in GTM]] before proceeding forward
Things needed on your website;
If you are new to woo commerce do not forget to check the Track enhance e-commerce
option in the settings
This will enable the woo commerce to push the data into the data layer which we can pull with the help of tag manager
after all the preparation has been completed, we will start by creating a tag which send data to Google Analytics 4
You need to put the event name exactly like the recommended event which is case-sensitive
In the User Property, you need to provide the value from the data layer
Now you need to go to More settings and click on Send Ecommerce Data
Now we need to build the trigger that will fire for the tag we created
purchase
Now to create all the ecommerce events there is an easy way to do it which will track all the ecommerce events on your shopping page.
You need to go the same tag section from above
And change the event name with the built in variable
For that you need to remove the event name that you filled and select the option on the side of it
And the variable box will pop out and you need to choose the event option
And now you need to change the trigger section to fire on all the ecommerce events
For that, you need to go to the same trigger that you made above
Now change the event name to:
begin_checkout|add_to_cart|remove_from_cart|view_item|select_item|view_item_list|select_promotion|view_promotion|purchase
Now copy and paste this on your event name and save
Do not forget to put name to your trigger and your tag
After configuring the GA4 tag, use the “Preview” mode in GTM to test its functionality.
Tracking purchases with Google Tag Manager is a great way to measure and improve your website’s performance and revenue. By using the Enhanced Ecommerce feature of Google Analytics, you can collect and analyze data on your customers’ shopping behavior, such as product views, add to cart, checkout, and transactions. You can also use GTM to implement custom purchase tracking, such as tracking coupon codes, payment methods, or shipping options. With GTM, you have full control and flexibility over how you track purchases on your website, and you can easily update and modify your tags without coding. We hope this article has helped you understand how to set up purchase tracking with GTM and how to use the data to optimize your online business.
You can check the data in the debug view of Google Analytics 4 and it will take 24 to 48 hours to get processed in GA4
Let’s talk about your business goal and align the solution we provide with our digital marketing services.
FREE strategy call© Humming Web. All Rights Reserved