Don't have one? Create one ↗
Work with real data

Hands-on module

Ecommerce & Shopify

Measure a real store end to end, from the purchase funnel through refunds and promos to a sandboxed Shopify checkout.

Now measure a real store end to end. GA4's ecommerce reports are built around a specific set of events, and this module sends all of them, then handles a locked-down Shopify checkout.

You'll fire a complete purchase, walk the full funnel from view_item_list onward, handle refunds, promotions, wishlist and coupons, and finish by turning a Shopify custom-pixel checkout into a GA4 purchase.

What you'll learn

  • Fire a GA4 purchase with a real value and items
  • Tag the full ecommerce funnel through checkout
  • Handle refunds, promotions, wishlist and coupons
  • Bridge a Shopify custom-pixel checkout into a GA4 purchase
Start lesson 116 lessons · self-paced

Lessons

  1. 1

    Why Shopify Is Different

    The checkout is sandboxed — the normal GTM snippet can't see it. Customer Events is the supported path.

  2. 2

    Getting Access To Customer Events

    Checkout Extensibility, the right store permissions, and protected-data approval for PII.

  3. 3

    Creating A Custom Pixel

    Add a pixel, subscribe to standard events, and respect the sandbox restrictions.

  4. 4

    Connecting GTM — The Custom Pixel

    Load GTM inside the sandbox, define your own dataLayer, and push events into it.

  5. 5

    The Events And Their GA4 Mapping

    Each Shopify event maps to a GA4 event; each payload field maps to a GA4 parameter.

  6. 6

    Testing On Checkout_Completed

    Place a test order, read each dataLayer variable, and wire the GA4 purchase tag.

  7. 7

    Gotchas & Double-Counting

    The traps that quietly corrupt Shopify ecommerce data — and how to avoid them.

  8. 8

    Practice: The Checkout_Completed Event

    Build the variables, trigger and GA4 purchase tag against a simulated Shopify push.

  9. 9

    Track An Ecommerce Purchase

    A shop that pushes clean GA4 ecommerce events. Wire up a purchase tag and watch it fire.

  10. 10

    Full Ecommerce Funnel

    view_item_list, select_item, view_cart, remove_from_cart, add_shipping_info, add_payment_info.

  11. 11

    Refunds

    Fire a GA4 refund event, full and partial, with item selection.

  12. 12

    Promotions

    Fire view_promotion / select_promotion with promotion_id and creative_slot.

  13. 13

    Add To Wishlist

    Fire the GA4 add_to_wishlist ecommerce event.

  14. 14

    Coupon Applied

    Capture a coupon code when a discount is applied.

  15. 15

    Shopify Checkout_Completed

    A simulated Shopify custom-pixel push. Build the DLVs, Custom Event trigger and GA4 purchase tag.

  16. 16

    Ecommerce & Shopify: Recap And Verify

    Recap every lesson, then check your whole container in one pass.