Add Google Analytics (GA4) to Checkout Page

In this help article, you will learn how to add Google Analytics to your checkouts on Checkout Page.

Many sellers choose to use Google Analytics to better understand their customers and improve the conversion rate of their checkouts.

It is a great way to collect data about your customers’ behavior and identify trends that would let you make data-driven decisions.

Using Google Analytics, Checkout Page will automatically track the purchase event. The purchase event will show as a conversion in the Monetization section in your Google Analytics dashboard.

The purchase event contains:

  • value
    • one time payments: total amount paid, including setup fee, variants and discounts
    • subscriptions: product price, excluding setup fee, variants, discounts
  • currency
  • transaction_id: order ID
  • coupon: coupon code
  • items
  • item_id: product sku or product ID
  • item_name: product name
  • price: product price

How to add Google Analytics to Checkout Page

Here’s how to add Google Analytics to your Checkout Page:

  1. Open your Google Analytics dashboard and select the property you want to use
  2. Navigate to the Admin tab on the bottom left menu and open Data Streams

image-7d54.png

3. Click on your stream and scroll down to View tag instructions

image-e619.png

4. Choose Install manually and copy your Google Tag

image-5df8.png

5. Go to Checkout Page and click on your checkout

6. Open Settings and paste the tag under Tracking pixels

image-8ba0b7.png

7. Click to Save and that’s it!

It can take 24-48 hours for purchases to show up in your Google Analytics dashboard. You can see new purchases (within 30 minutes) in the Realtime view.

To trigger a purchase event, you can make a test payment from your site or the payment link.

Take a look at these articles to further configure the event tracking for your one-page checkouts: