Shopify store: 90% of purchase events captured in GA4

A Shopify store could not see sales from post-purchase offers and third-party upsells. A custom tracking library in its Liquid files brought 90% of purchase events into GA4.

Results at a glance

  • 90%of purchase events captured in GA4
  • 70%of purchase events captured in Universal Analytics
  • Allenhanced ecommerce events and Shopify parameters sent to GA4

Who was the client?

The client is an e-commerce business that runs its store on Shopify. It relied on Universal Analytics for purchase reporting, and that data was not reliable.

  1. 1Challenge

    What was the challenge?

    Standard tracking could not follow every sale, so part of the store's revenue was missing from its reports.

    • Unreliable purchase data

      Universal Analytics was not capturing purchases reliably.

    • Post-purchase offers

      Resale products shown on the post-purchase page were not tracked.

    • Third-party upsells

      Upsell products bought through third-party interfaces were not tracked.

  2. 2Approach

    What did AnalyticsLiv do?

    We built the tracking into the store itself, in place of relying on a standard tag setup.

    1. Custom tracking library

      We built a custom library that works inside the store's Shopify Liquid files.

    2. Enhanced ecommerce data layers

      The library added enhanced ecommerce data layers across the store.

    3. Dynamic product values

      Snippets fetch product values dynamically on Shopify product pages.

    4. Sent to GA4 through GTM

      Google Tag Manager sends the ecommerce events and Shopify parameters to GA4.

  3. 3Results

    What were the results?

    • 90%of purchase events captured in GA4
    • 70%of purchase events captured in Universal Analytics
    • Allenhanced ecommerce events and Shopify parameters sent to GA4
    • More purchases counted. GA4 captured 90% of purchase events, compared with 70% in Universal Analytics.
    • Upsells included. Purchase tracking was extended to post-purchase and third-party upsell sales.
    • Full ecommerce data. All GA4 enhanced ecommerce events and Shopify parameters now reach GA4.

    The store moved to GA4 with more of its purchases counted and its Shopify product data attached.

What was the outcome?

The store now has more accurate purchase tracking in GA4, with the product detail needed for deeper analysis.

Talk to a specialist
Before
Standard tracking could not follow every sale, so part of the store's revenue was missing from its reports.
After
90% of purchase events captured in GA4, 70% of purchase events captured in Universal Analytics, All enhanced ecommerce events and Shopify parameters sent to GA4

Common questions.

Short answers, taken from this case study. Have more questions? Reach out to our team below.

Ask us your own question

The published results are 90% of purchase events captured in GA4, 70% of purchase events captured in Universal Analytics and All enhanced ecommerce events and Shopify parameters sent to GA4. The store moved to GA4 with more of its purchases counted and its Shopify product data attached.

The work had 4 parts: Custom tracking library, Enhanced ecommerce data layers, Dynamic product values and Sent to GA4 through GTM.

Google Analytics 4 & GTM. Each service page explains how we work.

Want a result like this?

Tell us about your account and what you want to improve. A Google Analytics 4 & GTM specialist replies by email or calls you back.

A specialist replies by email or calls you back.

Prefer to talk? Call +91 83205 76622, message us on WhatsApp or email [email protected].

Please enter your name.

Please enter a valid email address.

Please add a line about what you need.