by ShahzadaAliHassan - 7th November 2023
In this blog, we're going to explore how you can effectively track Add Payment Info (add_payment_info
) and Add Shipping Info (add_shipping_info
) events on your Shopify store for Google Analytics 4 (GA4) using Google Tag Manager (GTM). This process is crucial for e-commerce analytics, helping you understand your customers' journey through your online store.
Before diving into the setup process, ensure that you have the following:
It's also essential that your GA4 account is linked with your Shopify store. If you're not sure how to do that, you can start at this page. .
Important Note: A critical limitation to note is that if you don't have a Shopify Plus account, you won't be able to track these specific events as access to the checkout route is restricted for security reasons.
Let's begin by setting up our GA4 configuration tag in GTM, which will enable tracking of basic events such as page_view
, user_engagement
, and session_start
.
Data streams act as conduits between your Shopify store and GA4, allowing data to flow seamlessly. Here's how to configure them:
Admin
section in GA4.Property
column, look for Data Streams
.Measurement ID
in hand, head over to the GTM container.GA4 Measurement ID
for efficient reuse.Google Tag
.For the second part, we'll need to get a bit technical by working with custom code that your developer will add to the Shopify backend.
You'll need to create custom triggers for both 'Add Shipping Info' and 'Add Payment Info' events:
custom_
to avoid any conflicts with existing tags.After setting up the triggers and tags in GTM:
Remember, without a Shopify Plus account, this setup cannot be tested. But following these steps will allow Shopify Plus users to track these crucial e-commerce events.
In this tutorial, we've covered the essential steps to track 'Add Payment Info' and 'Add Shipping Info' events in a Shopify store using GA4 and GTM. By following these instructions, you should be able to capture valuable data about how users interact with your checkout process. However, keep in mind the limitation for non-Shopify Plus users and plan accordingly. Remember to review and refine the setup to ensure accuracy and optimal data collection. Happy tracking!