Ecommerce Growth

Ecommerce Analytics Setup: GA4 Configuration Guide for Online Stores

By Reviewed by Hawrry Bhattarai
July 30, 2026 13 min read
Contents
TL;DR — the short answer

GA4 ecommerce event setup from scratch — view_item to purchase, funnel exploration, custom dimensions, audience creation, and common mistakes to avoid.

14 min read · Ecommerce Growth · Last updated July 2026

Quick answer: GA4’s ecommerce event model gives you funnel-level visibility that Universal Analytics never had. Set up the 7 standard ecommerce events, configure funnel exploration, and connect to Google Ads — and you have the data foundation every growth decision needs.

Introduction

Universal Analytics is gone. GA4 is the standard. And the stores that understand GA4’s ecommerce event model have a serious data advantage over those running on guesswork.

The core promise of GA4 for ecommerce is funnel visibility. You can see — at the session level — exactly where users drop off between viewing a product and completing a purchase. That is data that changes how you allocate your CRO budget.

This guide covers the full GA4 ecommerce setup for Shopify and custom stores: the standard events, custom dimensions, funnel configuration, Google Ads integration, audience creation, and the most common mistakes that make GA4 data unreliable.

What you’ll learn:
– The 7 standard ecommerce events and what each tracks
– How to implement them on Shopify (native integration and GTM)
– Funnel exploration to find your biggest drop-off points
– Revenue attribution models in GA4
– How to create remarketing audiences from GA4 data


Table of Contents

  1. Why GA4 Matters More Than UA Did for Ecommerce
  2. The 7 Standard Ecommerce Events
  3. Implementation: Shopify Native vs GTM
  4. Enhanced Measurement Events
  5. Custom Dimensions for Ecommerce
  6. Funnel Exploration: Finding Your Drop-Off Points
  7. Revenue Attribution Models in GA4
  8. Connecting GA4 to Google Ads
  9. Audience Creation for Remarketing
  10. Common Implementation Mistakes
  11. GA4 Ecommerce Event Checklist
  12. Funnel Drop-Off Visualizer
  13. FAQ

Why GA4 Matters More Than UA Did for Ecommerce

Universal Analytics was session-based. GA4 is event-based. That shift matters enormously for ecommerce.

In UA, you could see that someone visited your store and that another session resulted in a purchase — but connecting those sessions to a single user journey was difficult. In GA4, everything is an event, and events are tied to a persistent user ID (when possible). You can see the complete journey: what someone viewed, what they added to cart, where they dropped off, and — if they came back later — whether they converted.

What GA4 gives ecommerce operators that UA did not:

  1. Funnel exploration: Visualize drop-off at each step from product view to purchase. See the exact percentage that drops between add_to_cart and begin_checkout.

  2. Cross-device tracking: When users log into Google accounts, GA4 can stitch together their mobile browse and desktop purchase into one journey.

  3. Predictive audiences: GA4 can predict which users are likely to purchase in the next 7 days, using machine learning on your historical event data. These audiences are directly usable in Google Ads.

  4. Better attribution: GA4’s data-driven attribution model (for accounts with sufficient data) allocates credit across touchpoints instead of defaulting to last click.

Key takeaway: GA4’s event model finally gives ecommerce operators the funnel data to make CRO decisions based on evidence rather than gut feel.


The 7 Standard Ecommerce Events

GA4 defines a set of recommended ecommerce events. Implement all of them — each one reveals a different part of the purchase funnel.

view_item_list

Triggers when: A user sees a list of products (collection page, search results, related products section).
Key parameters: item_list_id, item_list_name, items (array of products shown).
What it tells you: Which collection pages drive the most product discovery. Which product positions within a list get the most views.

view_item

Triggers when: A user views a product detail page.
Key parameters: currency, value (product price), items (product details including item_id, item_name, price, item_category, item_brand).
What it tells you: Which products get the most attention. The view_item → add_to_cart rate tells you how well your product pages convert interest into cart additions.

add_to_cart

Triggers when: A user clicks “Add to Cart.”
Key parameters: currency, value, items.
What it tells you: The product-level add-to-cart rate. A high view_item rate with a low add_to_cart rate points to product page CRO issues (images, price, reviews).

begin_checkout

Triggers when: A user starts the checkout process (clicks “Checkout” from the cart).
Key parameters: currency, value, items, coupon (if applied).
What it tells you: How many users reach checkout vs. how many added to cart. A high cart-to-checkout drop signals cart page friction.

add_payment_info

Triggers when: A user enters (or selects) their payment method.
Key parameters: currency, value, items, payment_type.
What it tells you: Where in checkout buyers drop off — specifically whether the payment step is the friction point.

add_shipping_info

Triggers when: A user selects a shipping method.
Key parameters: currency, value, items, shipping_tier.
What it tells you: Whether shipping method display causes abandonment. If users drop between this event and add_payment_info, shipping cost is likely the issue.

purchase

Triggers when: A user completes the order.
Key parameters: transaction_id, value (revenue), tax, shipping, currency, items, coupon.
What it tells you: Revenue, transaction volume, product mix, coupon usage. This is the foundation of your revenue reporting.

refund

Triggers when: A refund is processed.
Key parameters: transaction_id, value, items.
What it tells you: Product-level return rates. High refund rates on specific products signal quality issues, misleading descriptions, or sizing problems.


Implementation: Shopify Native vs GTM

Shopify has native GA4 integration through the Google & YouTube channel app.

Steps:
1. Install the Google & YouTube app from the Shopify App Store
2. Connect your Google account and select your GA4 property
3. Enable “Google Analytics” under the app settings
4. The app fires all standard ecommerce events automatically

What the native integration covers: view_item, add_to_cart, begin_checkout, purchase — automatically, with product data from your catalog.

What it misses: add_shipping_info and add_payment_info are not always fired correctly by the native integration. Verify these in GA4 DebugView (Admin → DebugView) while going through your own checkout flow.

For stores that need custom event parameters, multi-currency support, or more control over what data is sent:

  1. Install the GTM container on your Shopify store (add GTM snippet to theme.liquid)
  2. Use the Shopify + GA4 ecommerce data layer (several open-source implementations exist, or use a specialist)
  3. Configure GA4 Configuration tag in GTM
  4. Build custom event tags for each ecommerce event, pulling data from the data layer

GTM advantage: You control exactly what data goes to GA4 and when. You can add custom parameters that the native integration misses (product tags, vendor, custom inventory attributes).


Enhanced Measurement Events

GA4’s Enhanced Measurement fires automatically when enabled — no code required. For ecommerce, the relevant ones are:

  • Scrolls: Tracks when users scroll 90% down a page. Useful for product pages — if your product page gets lots of scrolls but low add-to-cart, the CTA is buried.
  • File downloads: If you have downloadable content (size guides, product manuals), this tracks engagement.
  • Site search: Fires a search event when users use your site search. Cross-reference with conversion rate to see which search terms convert and which do not.
  • Video engagement: Tracks play, progress, and completion on embedded YouTube videos.

Enable Enhanced Measurement in GA4 under Admin → Data Streams → [your stream] → Enhanced Measurement.


Custom Dimensions for Ecommerce

Custom dimensions let you slice your standard ecommerce reports by attributes specific to your catalog. The three most valuable for ecommerce:

1. Product Category

Register item_category as a custom dimension so you can filter purchase reports, conversion rates, and revenue by product category. Essential if you sell across multiple categories.

Setup: GA4 Admin → Custom Definitions → Custom Dimensions → New Custom Dimension → Scope: Item → Parameter name: item_category

2. Product Brand

If you carry multiple brands, register item_brand. This lets you see which brands convert best, have the highest AOV, and the highest return rates.

3. Product Variant

For apparel and configurable products, register item_variant to see which sizes or colors sell most. Persistent out-of-stock in a top-selling variant is invisible without this data.


Funnel Exploration: Finding Your Drop-Off Points

Funnel Exploration is the most powerful ecommerce tool in GA4 and the one most stores never configure.

How to set it up:

  1. In GA4, go to Explore → Funnel Exploration
  2. Name it “Ecommerce Purchase Funnel”
  3. Add these steps in order:
    – Step 1: Event = view_item
    – Step 2: Event = add_to_cart
    – Step 3: Event = begin_checkout
    – Step 4: Event = add_payment_info
    – Step 5: Event = purchase
  4. Set date range to last 30 days
  5. View the chart

What you will see: The percentage of users who complete each step. Typical benchmarks:

Step Typical Completion Rate
view_item → add_to_cart 8–15%
add_to_cart → begin_checkout 40–60%
begin_checkout → add_payment_info 55–75%
add_payment_info → purchase 65–85%

The step with the biggest percentage drop is your highest-priority optimization target.

Segment the funnel: Apply segments (new users vs. returning, mobile vs. desktop, paid traffic vs. organic) to see where different user groups drop off. Mobile users almost always drop off more at the payment step — this identifies where mobile checkout optimization will deliver the most revenue.


Revenue Attribution Models in GA4

Attribution determines which marketing touchpoints get credit for a purchase.

Last-click attribution (default): 100% of credit goes to the last touchpoint before purchase. Inflates the value of bottom-funnel channels (retargeting, branded search) and undervalues top-funnel channels (social, display, organic).

Data-driven attribution (recommended): Distributes credit across all touchpoints that contributed to the conversion, weighted by their statistical impact. Requires 300+ conversions per month to activate. Most accurately reflects which channels are actually driving revenue.

To switch to data-driven: GA4 Admin → Attribution → Attribution settings → Select “Data-driven”

For stores under 300 conversions/month, Google’s recommendation is “Last click” for Shopping campaigns and “Position-based” for awareness campaigns. The key is consistency — do not change attribution models frequently or your trend data becomes meaningless.


Connecting GA4 to Google Ads

GA4-to-Google Ads integration allows:
1. Importing GA4 conversion events into Google Ads for bidding
2. Using GA4 audiences in Google Ads campaigns
3. Seeing Google Ads campaign performance in GA4 reports

Setup:
1. GA4 Admin → Google Ads Links → New Link → Select your Google Ads account
2. Enable personalized advertising (required for audience sharing)
3. In Google Ads, go to Tools → Conversions → Import → Google Analytics 4 → select purchase event

Use the GA4 purchase event as your primary Google Ads conversion, not the Google Ads conversion tag separately. This ensures attribution is consistent between what GA4 reports and what Google Ads reports — a common source of discrepancy.


Audience Creation for Remarketing

GA4 audiences automatically sync to Google Ads when your accounts are linked. Create these four audiences at minimum:

Audience Definition Campaign Use
All visitors (30 days) Any session in last 30 days Broad remarketing
Viewed product, no cart view_item but not add_to_cart Product remarketing
Abandoned cart add_to_cart but not purchase Cart abandonment retargeting
Past purchasers purchase event (90 days) Cross-sell, LTV campaigns

Predictive audiences (GA4-specific): If you have sufficient data (300+ purchases in 30 days), GA4 offers:
– “Likely 7-day purchasers” — users predicted to buy in the next 7 days
– “Likely 7-day churners” — purchasers predicted not to return

These predictive audiences are among the highest-performing audiences in Google Ads because they identify intent signals before the user has even returned to your site.


Common Implementation Mistakes

1. Duplicate purchase events

The most common and most damaging mistake. If the purchase event fires on page load AND on a confirmation page that refreshes, you are counting orders twice. Always deduplicate by transaction_id.

2. Not excluding internal traffic

Your own visits inflate traffic metrics and add fake conversion data. Go to Admin → Data Filters → Create filter → Developer Traffic (filters your IP) or Internal Traffic.

3. Missing item-level data

Firing purchase with only total revenue and no items array means you cannot see product-level performance. Every purchase event must include the items array with product names, IDs, prices, and quantities.

4. Currency mismatch

If your store sells in multiple currencies, ensure all events send the correct currency code and the actual price in that currency — not the converted USD value. GA4 handles currency conversion natively.

5. Tracking checkout on subdomain

If your checkout is on a subdomain (e.g., checkout.yourstore.com), ensure GA4 is also installed on the checkout domain with the same Measurement ID. Add the subdomain to your Data Stream’s domain list.


GA4 Ecommerce Event Checklist

GA4 Ecommerce Implementation Checklist

Verify each element is in place for a complete GA4 ecommerce setup.


Funnel Drop-Off Visualizer

Purchase Funnel Drop-Off Visualizer

Enter your monthly event counts from GA4 Funnel Exploration to see your biggest drop-off points.






FAQ

Do I need Google Tag Manager to set up GA4 ecommerce?
Not necessarily. Shopify’s native Google & YouTube channel app fires the core ecommerce events without GTM. However, GTM gives you more control, especially for add_shipping_info and add_payment_info which the native integration sometimes misses. For stores doing over $50,000/month, GTM implementation is worth the setup investment.

How long does it take to get useful data in GA4?
You need at least 30 days of data before trends are meaningful. For funnel exploration, you want at least 1,000 add_to_cart events in your date range to see statistically reliable drop-off rates. Smaller stores may need to look at 90-day windows.

What is the difference between sessions and users in GA4 funnel exploration?
Sessions count each visit separately — one user can contribute multiple sessions. Users count unique individuals (based on Google’s user ID model). For funnel analysis, sessions are typically more useful because they represent discrete purchase attempts. A user can view products in one session and purchase in another — both sessions are part of the funnel.

How do I verify my purchase event is firing correctly?
Place a test order (you can cancel and refund it). In GA4, go to Admin → DebugView and watch for the purchase event to appear. Verify it includes the correct transaction_id, value, currency, and items array. Also verify it only fires once per order.

Can I use GA4 without cookies?
GA4 uses cookies by default but supports cookieless measurement through Google Signals and modeled data. For markets with strict privacy laws (GDPR, Australian Privacy Act), implement a Consent Mode v2 integration so GA4 respects user consent choices while still providing aggregate modeled data.


Conclusion

GA4 ecommerce data is only as good as your implementation. A missing items array on purchase events, a duplicate purchase event, or a missing begin_checkout event each distort your funnel data and lead to bad optimization decisions.

Start with the checklist above. Verify events in DebugView. Build your funnel exploration in the first week. Then let the data tell you where to focus your CRO budget — rather than guessing based on instinct.

The stores with the best analytics are not more data-obsessed than their competitors. They just make fewer expensive mistakes.


Ready to Grow Your Ecommerce Store?

Our ecommerce growth team handles SEO, email, Shopping, and CRO as one connected system. → Talk to Our Ecommerce Team


Written by the Ignited Nepal ecommerce team. ignitednepal.com

NR

Article by

Niraj Raut

Head of Search at Ignited Nepal. Drove 340% organic traffic growth for EzyDog (Australia), 4× revenue for The Turf Man (Australia), and 120% month-on-month traffic growth for ThemeGrill (Nepal). Keynote speaker at WordCamp Nepal 2023 and verified WordPress.org open-source contributor.