Shopify & E-commerce

GA4 Shopify setup guide for reliable data measurement

Follow this GA4 Shopify setup guide for flawless tracking. Learn how to use server-side data to base your marketing decisions on hard facts.

Frederiek Pascal Frederiek Pascal
GA4 Shopify setup guide for reliable data measurement
Summary
  • Universal Analytics stopped July 2023 – GA4 is now the only option for webshop analytics
  • Setup takes 1–2 hours – via native Shopify integration without technical knowledge
  • 12 crucial e-commerce events – from product view to purchase tracked automatically
  • 88% better predictive power – machine learning predicts which visitors will convert
  • GDPR-proof with Consent Mode – cookieless tracking possible since March 2024
  • 24–48 hour data delay – wait at least 2 days before analysing your first reports

Why every Shopify merchant needs to implement GA4 now

What is Google Analytics 4? GA4 is the latest version of Google’s analytics platform, which has fully replaced Universal Analytics since July 2023. For webshops this means: event-based tracking instead of sessions, cross-device customer insight and automatic e-commerce measurements without manual code.

Google definitively stopped Universal Analytics in July 2023. Webshops not yet running Google Analytics 4 are missing crucial insights about customer behaviour, product performance and conversion optimisation opportunities.

The switch from session-based to event-based tracking sounds technical, but delivers directly usable benefits. GA4 follows individual actions such as product clicks, shopping cart additions and checkout steps instead of superficial session figures.

Concrete benefits for e-commerce:

  • You see exactly where customers drop off in the ordering process
  • Which products are bought together (cross-sell insights)
  • Which marketing channels deliver the highest lifetime value customers
  • Predictive metrics show which visitors are likely to buy

These data-driven insights are essential for performance marketing and conversion optimisation.

Research by Google shows that webshops that fully implement GA4 make on average 23% better decisions about advertising budget allocation and achieve 18% higher conversion rates through well-founded checkout optimisations.

“Good AI needs good data. Your AI is only as good as the first-party data you use as fuel.”

— Gaurav Bhaya, VP/GM Ads Management, Google

GA4 vs Universal Analytics: what are the differences for webshops?

Aspect Universal Analytics Google Analytics 4
Tracking basis Sessions (30 min timeout) Events + User ID
Cross-device Not possible Automatic via User ID
E-commerce data Manual configuration Native Shopify integration
Predictive metrics None Purchase probability, churn risk
Data retention Unlimited (until stop 2023) 2–14 months (configurable)
Privacy compliance IP anonymisation manual Consent Mode v2 native

Difference between Universal Analytics and Google Analytics 4: Universal Analytics measured website visits in sessions of 30 minutes. GA4 uses event-based tracking linked to individual users across devices and sessions. This means better customer insights, cross-device tracking and predictive metrics that UA lacked.

A practical example: a customer who views products on Monday and orders on Thursday was counted in Universal Analytics as two separate sessions with no connection. Google Analytics 4 now correctly recognises this customer as one person with a purchase journey of 4 days.

This cross-device and cross-session insight is fundamental to modern e-commerce.

The impact on reporting is immediately visible:

The 3 biggest benefits of GA4 for Shopify webshops:

  • Automatic e-commerce tracking – No code edits needed, everything via the Shopify app
  • Cross-device customer insight – See the complete purchase journey from mobile to desktop
  • AI-driven predictions – Identify high-value customers before they convert

“At Apple, we believe privacy is a fundamental human right.”

— Tim Cook, CEO Apple

Step 1: Set up the GA4 property correctly

How do you create a GA4 property? Log in to Google Analytics, click Admin in the sidebar, select + Create property at the top right. Fill in the property name (e.g. “Your Webshop - GA4”), choose timezone Europe/Brussels or Amsterdam, select EUR as currency. This takes 5 minutes.

Property configuration step by step

Log in to Google Analytics and navigate to Admin in the left sidebar. Click + Create property at the top right.

Configuration requirements:

  • Property name: Choose clearly, for example “Your Webshop - GA4 Production”
  • Timezone: Europe/Brussels (Belgium) or Europe/Amsterdam (Netherlands)
  • Currency: EUR (essential for correct revenue reporting)

Click through to the Datastream screen and select Web as the platform. Fill in your primary Shopify URL, usually yourshop.myshopify.com or your custom domain.

Important: Enhanced measurement is on by default. This automatically tracks scrolls, video views and file downloads. For pure e-commerce you can turn this off to keep events organised.

Note your Measurement ID (format: G-XXXXXXXXXX). You need this for the Shopify connection in step 2.

Setting up cross-domain tracking

For webshops with multiple domains or subdomains, you must configure cross-domain tracking. Add all domains under Configure tag settings > Configure your domains.

Why is cross-domain tracking important? If your checkout is on a separate domain (e.g. shop.yourbrand.com → checkout.yourbrand.com), the session breaks without cross-domain tracking. GA4 sees this as two separate visitors instead of one purchase journey.

Step 2: Activate native Shopify integration

How do you install GA4 on Shopify? Go to Shopify Admin → Settings → Apps, search for “Google & YouTube” in the App Store, click Add app, connect your Google account, select your GA4 property and activate customer events. The installation takes 10–15 minutes without code edits.

Shopify has offered an official Google & YouTube app since 2023 that radically simplifies GA4 installation. Previously, entrepreneurs had to manually edit tracking codes in theme files; now everything works via a visual interface.

Installation via the Google & YouTube app

In your Shopify admin go to Settings > Apps and sales channels. Click on the Shopify App Store and search for “Google & YouTube” (the official app from Google LLC).

Installation steps:

  • Click Add app and accept the permissions
  • Select Connect Google Account and log in with the account where your GA4 property is
  • Choose your GA4 property from the dropdown list
  • Activate Enable customer events for behavioural data tracking
  • Enable Enhanced conversions for better Google Ads optimisation

The app automatically installs the GA4 gtag on all pages of your webshop. You do not need to edit code or use third-party apps.

Verification: is tracking working?

Open your webshop in an incognito browser window. Install the Google Tag Assistant Chrome extension and activate it. You should see that the GA4 tag (G-XXXXXXXXXX) fires correctly on every page.

Control checklist:

  • Tag fires on homepage
  • Tag fires on product pages
  • Tag fires on checkout
  • No errors in Tag Assistant

“Research shows that personalisation usually delivers 10 to 15 percent extra revenue, with company-specific growth figures between 5 and 25 percent, depending on sector and execution quality.”

— McKinsey & Company

Step 3: Track e-commerce events automatically

Which events does GA4 automatically track on Shopify? GA4 automatically measures 12 e-commerce events without extra setup: view_item, add_to_cart, begin_checkout, purchase, view_cart, remove_from_cart, select_item, view_item_list, add_shipping_info, add_payment_info, search and view_promotion.

The power of GA4 for Shopify lies in automatic event tracking. As soon as the Google & YouTube app is active, these events are measured without any extra configuration.

The 12 automatic e-commerce events

Customer journey events:

  • view_item – Customer views a product page
  • view_item_list – Customer views a collection or search results
  • select_item – Customer clicks on a product in a list
  • add_to_cart – Product added to shopping cart
  • view_cart – Shopping cart page opened
  • remove_from_cart – Product removed from shopping cart
  • begin_checkout – Checkout process started
  • add_shipping_info – Shipping method chosen
  • add_payment_info – Payment method selected
  • purchase – Order successfully completed

Engagement events:

  • search – Search function used on webshop
  • view_promotion – Banner or promotional content shown

Each event automatically contains parameters such as items (product details), value (transaction value), currency, transaction_id and coupon if applicable.

Verification after 24–48 hours

Check after 24–48 hours (GA4 has a processing delay) whether events are coming in via Reports > Realtime. Go through the full ordering process yourself in an incognito window and verify that all events appear.

Troubleshooting tip: Events not coming in? Check whether your cookie banner or consent management platform is blocking GA4. Consent Mode must be correctly configured, otherwise GA4 respects the cookie refusal and tracks nothing.

Step 4: Define conversions for optimisation

How do you mark events as conversions in GA4? Go to Admin → Events, find the event (e.g. purchase), click the toggle icon on the right to activate Mark as conversion. Conversions appear within 24 hours in reports and can be used for Google Ads bidding.

Not every event is equally valuable. Google Analytics 4 lets you mark important events as conversions so that they appear prominently in reports and can be used for Google Ads optimisation strategies.

Which events should you mark as conversions?

Navigate to Admin > Events (under Data display column). You see an overview of all events your property tracks.

Recommended conversions:

  • purchase – Always, this is your primary conversion
  • begin_checkout – Optional, useful for checkout funnel optimisation
  • add_to_cart – Optional, for retargeting campaigns and product interest tracking

Click the toggle icon to the right of the event to mark it as a conversion. Conversions appear within 24 hours in Reports > Engagement > Conversions.

Custom conversions for advanced tracking

Pro tip for advanced users: Create custom conversions for specific scenarios. For example: a conversion that only fires for purchases above €100 for VIP customer identification. You do this via Admin > Events > Create event with conditions.

Examples of custom conversions:

  • Purchases above €100 (VIP customers)
  • Specific product categories (e.g. premium products only)
  • Repeat purchases (loyalty tracking)
  • Bundle purchases (cross-sell success)

Marked conversions can be directly imported into Google Ads for automated bidding. This significantly improves the performance of Shopping campaigns because machine learning algorithms know exactly which clicks lead to sales.

Step 5: Build smart audience segments

What are audiences in GA4? Audiences are dynamic customer segments that automatically update based on behaviour, such as cart abandoners, VIP customers or high-intent shoppers. You build them via Admin → Audiences → New audience and use them for retargeting in Google Ads.

GA4 Audiences are powerful customer segments for retargeting, personalisation and lifecycle marketing. Unlike UA filters, you work here with dynamic groups that automatically update.

4 essential audiences for every webshop

Go to Admin > Audiences and click New audience. Choose Create a custom audience for full control.

1. High-intent shoppers segment:

  • Condition 1: Event view_item → count > 3 in last 7 days
  • Condition 2: Event purchase → does not exist in last 30 days
  • Use case: Retarget with product-specific ads or discount codes

2. Cart abandoners segment:

  • Condition 1: Event add_to_cart → occurred in last 24 hours
  • Condition 2: Event purchase → does not exist
  • Use case: Automated email flows via marketing automation

3. VIP customers segment:

  • Condition: Event purchase → lifetime value > €500
  • Use case: Exclusive offers, early access, loyalty programmes

4. Win-back segment:

  • Condition 1: Event purchase → last occurred 60–90 days ago
  • Condition 2: Event session_start → count = 0 in last 30 days
  • Use case: Reactivation campaigns with incentives

Audiences automatically become available in Google Ads for targeting within 24–48 hours. For email marketing, you must export or connect audiences via Customer Match.

“Companies with a higher growth rate derive 40 percent more of their revenue from personalisation than slower-growing competitors.”

— McKinsey & Company

Step 6: Reporting you actually use

Which GA4 reports should you look at for e-commerce? The 4 most important reports are: Monetization overview (revenue and AOV), E-commerce purchases (product performance), User acquisition (traffic sources) and Funnel exploration (where customers drop off). Check these weekly for data-driven decisions.

Standard GA4 reports can be overwhelming for those used to the simplicity of Universal Analytics. Focus on these core reports for e-commerce.

The 4 essential standard reports

1. Monetization overview (Reports > Monetization > Overview)

  • Total revenue: Gross revenue over the selected period
  • Average purchase revenue: Average order value (AOV)
  • Purchasers: Number of unique buyers
  • Purchase conversion rate: Percentage of visitors who buy

2. E-commerce purchases (Reports > Monetization > E-commerce purchases)

  • Items viewed / purchased ratio: Product interest vs conversion
  • Product performance: Which SKUs sell best
  • Revenue by item: Revenue per product category

3. User acquisition (Reports > Acquisition > User acquisition)

  • Traffic sources: Where do new visitors come from
  • Medium breakdown: Organic, paid, social, referral performance
  • Campaign performance: ROI per marketing campaign

4. Engagement overview (Reports > Engagement > Overview)

  • Top events: Most performed actions
  • Conversions by event: Which events lead to sales
  • User engagement: How long do people stay on your site

Advanced analyses with Explore

For deeper analyses, use Explore. Click the exploration icon in the sidebar and choose a template:

Funnel exploration – Visualise where customers drop off:

  • Step 1: session_start
  • Step 2: view_item
  • Step 3: add_to_cart
  • Step 4: begin_checkout
  • Step 5: purchase

Drop-off between checkout and purchase above 50%? This signals problems with shipping costs, payment methods or trust. Test with different CRO tactics.

Path exploration – See which routes customers take through your webshop. You often discover that visitors compare multiple products before deciding, or that they first go to About/Reviews pages for social proof.

Looker Studio dashboards

For executive dashboards, Looker Studio is more powerful than native GA4 reports. Connect your GA4 property and build custom visualisations with real-time revenue charts, top products and conversion funnel breakdown.

Benefits of Looker Studio:

  • Real-time automated reports
  • Custom branding and layout
  • Combine multiple data sources
  • Automated email delivery to stakeholders

Step 7: Google Ads connection for better ROAS

How do you connect GA4 to Google Ads? Go to Admin → Google Ads links → Link, select your Ads account, activate auto-tagging, import conversions and audiences. Enable Enhanced conversions under Data collection. Within 24 hours, GA4 conversions appear in your Ads account.

The biggest value of GA4 lies in the integration with Google Ads. By sharing conversions and audiences, automated bidding strategies optimise much more effectively.

Making the connection in 5 steps

Step 1: Go to Admin > Google Ads links Step 2: Click Link and select your Google Ads account Step 3: Activate Link configuration:

  • Enable auto-tagging ✓
  • Import conversions ✓
  • Import audiences ✓

Step 4: Choose which conversions you want to import (minimum purchase) Step 5: Enable Enhanced conversions under Admin > Data collection

Enhanced conversions: why this is crucial

Enhanced conversions sends hashed customer data (email, phone) to Google for better conversion matching. This increases measured conversions by an average of 15–20% because offline conversions and cross-device purchases are better attributed.

Why does this work?

  • Customer email matching across devices
  • Better attribution for mobile-to-desktop conversions
  • Reduced impact of cookie deletion
  • Improved Smart Bidding performance

Within 24 hours, your GA4 conversions appear in Google Ads under Tools > Conversions. Use these for Smart Bidding strategies such as Target ROAS or Maximize Conversion Value.

For Shopify webshops with a limited budget, this is crucial: machine learning needs 30–50 conversions per month for effective optimisation. GA4’s more accurate tracking reaches that threshold faster than older methods.

GDPR compliance for Belgian webshops

Is GA4 GDPR-compliant? Yes, provided you implement Consent Mode v2 (mandatory since March 2024), set data retention to max 14 months, activate IP anonymisation (on by default) and update your privacy policy with GA4 usage. Cookie refusals result in aggregated data without individual tracking.

Since March 2024, Consent Mode v2 is mandatory for all websites using Google tools. GA4 has this natively built in but you must configure it correctly.

5-step compliance checklist

1. Implement Consent Mode v2 Via your cookie banner (Cookiebot, OneTrust, CookieYes). This ensures GA4 only places tracking cookies after consent.

2. IP anonymisation Active by default in GA4, no extra configuration needed. GA4 does not store full IP addresses.

3. Set data retention Max 14 months via Admin > Data Settings > Data Retention. After this period, user data is automatically deleted.

4. Update privacy policy Mention GA4 use and data processing by Google. Refer to Google’s privacy terms.

5. User deletion requests process Implement a procedure to delete GA4 User-IDs on request via Admin > Data deletion requests.

When a visitor refuses cookies, GA4 switches to cookieless pings. You then see aggregated data without individual user tracking. This is GDPR-compliant but less accurate.

Impact of cookie refusals:

  • Webshops lose on average 20–40% tracking data
  • Consent Mode partially compensates for this through modelled conversions
  • Conversions are estimated based on similar behaviour from users who did give consent

For extensive GDPR guidance, read our article about cookieless marketing strategies and first-party data optimisation.

From data to action: what do you do with GA4 insights

How do you use GA4 data for more revenue? The 4 most important actions are: product abandonment remarketing (retarget product viewers who didn’t buy), optimise checkout flow (fix drop-off points), device-specific improvements (fix mobile conversion issues) and predict seasonal trends (prepare inventory for Black Friday).

Installing analytics is step one. The real ROI comes from actions you take based on the data.

4 practical use cases with direct impact

1. Product abandonment remarketing

Filter users with view_item but no add_to_cart. These showed interest but didn’t buy.

Action: Retarget with product-specific ads via Google Ads or Meta. Test different hooks:

  • Discount codes (10–15% off)
  • Free shipping threshold
  • Social proof (“327 people bought this product this week”)
  • Urgency (“Only 3 left in stock”)

2. Optimise checkout flow

Analyse where the biggest drop-off is between begin_checkout and purchase.

Diagnosis and solutions:

  • Drop-off at shipping costs? → Test free shipping threshold
  • Drop-off at payment methods? → Add Klarna or Bancontact
  • Drop-off at account registration? → Implement guest checkout
  • Drop-off at form filling? → Shorten checkout to 1 page

Use A/B testing via Shopify apps such as Optimizely or Google Optimize.

3. Device-specific improvements

Check conversion rate per device type (mobile/desktop/tablet) in the User acquisition report.

If mobile converts significantly lower:

  • Loading speed issues (test with Google PageSpeed Insights)
  • Poor mobile navigation (too-small buttons, hidden menu)
  • Complex checkout (too many fields, awkward typing)
  • Payment friction (no Apple Pay/Google Pay)

Focus mobile optimisation budget on the device with lowest conversion but highest traffic.

4. Predict seasonal trends

View last year’s data for Black Friday, Cyber Monday or the year-end period in the date range selector.

Prepare for:

  • How much traffic came? (server capacity planning)
  • Which products sold best? (inventory stock)
  • What was the average AOV? (prepare bundle promotions)
  • When did the peak start exactly? (advertising timing)

Predictive metrics for advanced users

GA4 Predictive metrics such as “Purchase probability” and “Churn probability” only become active after sufficient data (at least 1,000 purchase events). For new webshops this takes 3–6 months, but then you get machine learning predictions that help with targeting.

Use cases for predictive audiences:

  • Target high purchase probability users with premium products
  • Win-back campaigns for high churn risk customers
  • VIP programme invitations for high lifetime value predictions

Need help with the full implementation including custom dashboards and automated reporting? ClickForest helps Shopify entrepreneurs with data-driven growth strategy and analytics setup.

More leads, higher conversion, better ROI

Ready to turn insights into results? Whether you want to build a profitable webshop, generate more revenue from performance marketing or SEO, or grow with AI marketing. Let's tackle it together.

Discuss your challenge directly with Frederiek: Book a free strategy call or send us a message

Prefer email? Send your question to frederiek@clickforest.com or call +32 473 84 66 27

Strategy without action remains theory. Let's take your next step together.

Frequently asked questions

How long does it take to install Google Analytics 4 on Shopify?
Basic configuration via the Shopify Google & YouTube app takes 1–2 hours for someone without a technical background. Advanced setup with custom events, audiences and Looker Studio dashboards takes 4–6 hours. For complex multi-currency or multi-domain webshops, allow 1–2 days including testing and troubleshooting.
Can I run Universal Analytics and GA4 at the same time on my Shopify webshop?
No, Universal Analytics stopped definitively on 1 July 2023. All tracking now runs via GA4. Historical UA data remains available for 6 months in the old interface but will then be deleted. Export important reports now as a backup via Google Sheets or PDF.
Why do I see less traffic in GA4 than I had in Universal Analytics?
This is normal and has three causes. First, GA4 filters bots and spam traffic more aggressively. Second, GA4 better respects cookie refusals through Consent Mode. Third, GA4 counts user-centric rather than session-centric, which produces different numbers. A difference of 10–25% is standard, but your data is now more reliable and compliant.
Do I have to pay for Google Analytics 4 or is it free?
The standard GA4 version is free and has no limits for 99% of webshops. Only from 10 million events per month or when you need BigQuery export is GA4 360 required, starting at €50,000 per year. For reference: an average webshop with 50,000 visitors per month generates around 500,000 events, well under the free tier limit.
How do I connect GA4 to my email marketing platform like Klaviyo or Mailchimp?
GA4 automatically tracks email traffic if you use UTM parameters in your links. Format: ?utm_source=klaviyo&utm_medium=email&utm_campaign=welcome-series. Every email platform (Klaviyo, Mailchimp, Omnisend) has a UTM generator. For advanced integrations, export GA4 audiences to the platform via Customer Match or native integrations.
Can I export GA4 data for my own analyses in Excel or Google Sheets?
Yes, via three methods. Free via BigQuery export for 1TB data per month (suitable for SQL queries). Via Google Sheets add-on for simple reports. Or via API for custom integrations. BigQuery is only available in the free version if you are under 1 million events per day.
What if my Shopify webshop runs on multiple domains or subdomains?
Configure cross-domain tracking in your datastream settings under Configure tag settings > Configure your domains. Add all domains where you want to track (for example: shop.yourbrand.com, yourbrand.com, checkout.yourbrand.com). GA4 then automatically sets linker parameters to follow users across domains without session breaks.
How do I prevent my own visits from being counted in GA4?
Two methods. Simple: install the Chrome extension "Google Analytics Opt-out Browser Add-on". Advanced: filter your IP address via Admin > Data Settings > Data Filters > Create filter and choose Internal Traffic. Add your business IP (check at whatismyip.com) and set the filter to "Exclude".
How long do I wait before I see reliable data in GA4 reports?
First events appear within 24 hours in realtime reports. For full processing including all dimensions and metrics, wait 24–48 hours. For statistical reliability of conversion rates and audience segments, you need at least 30 days of data. Machine learning features such as predictive metrics require 3–6 months with at least 1,000 conversions.
What exactly is the difference between GA4 events and conversions?
Events are all tracked actions (product view, add to cart, clicks, scrolls). Conversions are events you mark as valuable for your business goals. Every conversion is an event, but not every event is a conversion. You can mark a maximum of 30 events as conversion per property.
Does GA4 also work on AMP pages or in mobile apps?
Yes, GA4 is the first version of Google Analytics that combines web and app data in one property. For mobile apps, use Firebase SDK (iOS/Android). For AMP pages (Accelerated Mobile Pages), use the amp-analytics component with your GA4 Measurement ID. The data appears seamlessly together in your reports.

Sources and references

Google Analytics documentation:

Shopify integration: