Google Analytics 4 for Shopify: complete setup guide 2026
- 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 – automatically tracked from product view to purchase
- 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 analyzing your first reports
Why Every Shopify Entrepreneur Must 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 user insights, and automatic e-commerce measurements without manual code.
Google permanently discontinued Universal Analytics in July 2023. Webshops not yet running Google Analytics 4 are missing crucial insights into customer behavior, product performance, and conversion optimization opportunities.
The transition from session-based to event-based tracking may sound technical, but it offers immediate practical benefits. GA4 tracks individual actions such as product clicks, cart additions, and checkout steps, rather than superficial session figures.
Concrete benefits for e-commerce:
You see exactly where customers drop off in the order process
Which products are purchased together (cross-sell insights)
Which marketing channels deliver the highest lifetime value customers
Predictive metrics show which visitors are likely to make a purchase
These data-driven insights are essential for performance marketing and conversion optimization.
Research by Google shows that webshops that fully implement GA4 make on average 23% better decisions regarding advertising budget allocation and achieve 18% higher conversion rates through informed checkout optimizations.
“Good AI needs good data. Your AI is only as good as the first‑party data you use as fuel.”
GA4 vs Universal Analytics: what are the differences for webshops?
Difference between Universal Analytics and Google Analytics 4: Universal Analytics measured website visits in 30-minute sessions. 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 did not have.
A practical example: a customer who views products on Monday and orders on Thursday was counted as two separate, unrelated sessions in Universal Analytics. Google Analytics 4 now correctly recognizes this customer as one person with a 4-day purchase journey.
This cross-device and cross-session insight is fundamental for modern e-commerce.
The impact on reporting is immediately visible:
The 3 main benefits of GA4 for Shopify webshops:
Automatic e-commerce tracking – No code edits required, everything via the Shopify app
Cross-device customer insights – View 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.
”
Step 1: Correctly set up your GA4 property
How to create a GA4 property? Log in to Google Analytics, click Admin in the sidebar, select + Create Property in the top right. Enter the property name (e.g., "Your Webshop - GA4"), choose the timezone Europe/Brussels or Amsterdam, select EUR as the 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 in the top right.
Configuration requirements:
Property name: Choose a clear name, for example, "Your Webshop - GA4 Production"
Time zone: Europe/Brussels (Belgium) or Europe/Amsterdam (Netherlands)
Currency: EUR (essential for accurate revenue reporting)
Click through to the Datastream screen and select Web as the platform. Enter your primary Shopify URL, usually yourshop.myshopify.com or your custom domain.
Important: Enhanced measurement is enabled by default. This automatically tracks scrolls, video views, and file downloads. For pure e-commerce, you can disable this to keep events manageable.
Note your Measurement ID (format: G-XXXXXXXXXX). You will need this for the Shopify integration in step 2.
Set up cross-domain tracking
For webshops with multiple domains or subdomains, you need to 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 with no code edits.
Since 2023, Shopify offers an official Google & YouTube app that radically simplifies GA4 installation. Previously, merchants had to manually edit tracking codes in theme files; now, everything works through a visual interface.
Installation via the Google & YouTube app
In your Shopify admin, go to Settings > Apps and sales channels. Click on 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 located
Choose your GA4 property from the dropdown list
Activate Enable customer events for behavioral data tracking
Enable Enhanced conversions for better Google Ads optimization
The app automatically installs the GA4 gtag on all pages of your webshop. You don't need to edit any code or use third-party apps.
Verification: Is the 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 personalization typically generates 10 to 15 percent additional revenue, with company-specific growth rates between 5 and 25 percent, depending on the industry and quality of execution.
”
Step 3: Automatically track e-commerce events
Which events does GA4 automatically track on Shopify? GA4 automatically measures 12 e-commerce events without additional 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. Once the Google & YouTube app is active, these events are measured without additional configuration.
The 12 automatic e-commerce events
Customer journey events:
view_item – Customer views product page
view_item_list – Customer views collection or search results
select_item – Customer clicks on product in list
add_to_cart – Product added to cart
view_cart – Cart page opened
remove_from_cart – Product removed from 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 online store
view_promotion – Banner or promotional content displayed
Each event automatically includes parameters such as items (product details), value (transaction value), currency, transaction_id, and coupon if applicable.
Verification after 24-48 hours
After 24-48 hours (GA4 has a processing delay), check if events are coming in via Reports > Realtime. Go through the entire ordering process yourself in an incognito window and verify that all events appear.
Troubleshooting tip: Events not appearing? Check if your cookie banner or consent management platform is blocking GA4. Consent Mode must be correctly configured, otherwise GA4 respects cookie rejection and tracks nothing.
Step 4: Defining conversions for optimization
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 will appear in reports within 24 hours and can be used for Google Ads bidding.
Not every event is equally valuable. Google Analytics 4 allows you to mark important events as conversions so they appear prominently in reports and can be used for Google Ads optimization strategies.
Which events should you mark as conversions?
Navigate to Admin > Events (under the Data display column). You will see an overview of all events tracked by your property.
Recommended conversions:
purchase – Always, this is your primary conversion
begin_checkout – Optional, useful for checkout funnel optimization
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 will 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 precisely know which clicks lead to sales.
Step 5: Building smart audience segments
What are audiences in GA4? Audiences are dynamic customer segments that automatically update based on behavior, 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, personalization, and lifecycle marketing. Unlike UA filters, here you work with dynamic groups that update automatically.
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 programs
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 need to export or link audiences via Customer Match.
“Companies with a higher growth rate derive 40 percent more of their revenue from personalization than slower-growing competitors.”
Step 6: Reporting you actually use
Which GA4 reports should you check 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 are overwhelming for those accustomed 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 for the selected period
Average purchase revenue: Average Order Value (AOV)
Purchasers: Number of unique buyers
Purchase conversion rate: Percentage of visitors who purchase
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 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 people stay on your site
Advanced analytics with Explore
For deeper analysis, use Explore. Click the explore icon in the sidebar and choose a template:
Funnel exploration – Visualize 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 indicates problems with shipping costs, payment methods, or trust. Test with different CRO tactics.
Path exploration – See which paths 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 visualizations with real-time revenue graphs, 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 integration for better ROAS
How do you link 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 will appear in your Ads account.
The greatest value of GA4 lies in its integration with Google Ads. By sharing conversions and audiences, automated bidding strategies optimize much more effectively.
Create a link 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 (at least purchase)
Step 5: Enable Enhanced conversions under Admin > Data collection
Enhanced conversions: why this is crucial
Enhanced conversions send hashed customer data (email, phone) to Google for better conversion matching. This typically increases measured conversions by 15-20% because offline conversions and cross-device purchases are attributed more accurately.
Why does this work?
Customer email matching over devices
Better attribution for mobile-to-desktop conversions
Reduced impact of cookie deletion
Improved Smart Bidding performance
Within 24 hours, your GA4 conversions will 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 requires 30-50 conversions per month for effective optimization. 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 a maximum of 14 months, activate IP anonymization (on by default), and update your privacy policy to reflect GA4 usage. Cookie rejections result in aggregated data without individual tracking.
Since March 2024, Consent Mode v2 has been mandatory for all websites using Google tools. GA4 has this built-in natively, but you need to configure it correctly.
5-step compliance checklist
1. Implement Consent Mode v2
Via your cookie banner (Cookiebot, OneTrust, CookieYes). This ensures that GA4 only places tracking cookies after consent.
2. IP anonymization
Active by default in GA4, no additional 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 usage and data processing by Google. Refer to Google's privacy terms.
5. User deletion requests process
Implement a procedure to delete GA4 User-ID upon request via Admin > Data deletion requests.
How does Consent Mode work?
When a visitor rejects 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 rejections:
Webshops lose an average of 20-40% tracking data
Consent Mode partially compensates for this through modelled conversions
Conversions are estimated based on similar behavior of users who did give consent
For comprehensive GDPR guidance, read our article on cookieless marketing strategies and first-party data optimization.
From data to action: what to 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 purchase), optimizing checkout flow (fix drop-off points), device-specific improvements (resolve mobile conversion issues), and predicting 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 did not purchase.
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 items left in stock")
2. Optimize checkout flow
Analyze where the biggest drop-off occurs between begin_checkout and purchase.
Diagnosis and solutions:
Drop-off due to shipping costs? → Test free shipping threshold
Drop-off due to payment methods? → Add Klarna or Bancontact
Drop-off due to account registration? → Implement guest checkout
Drop-off during form completion? → Shorten checkout to 1 page
Use A/B testing via Shopify apps like 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 (buttons too small, hidden menu)
Complex checkout (too many fields, awkward typing)
Payment friction (no Apple Pay/Google Pay)
Focus mobile optimization budget on the device with the lowest conversion but highest traffic.
4. Predict seasonal trends
Review last year's data for Black Friday, Cyber Monday, or the year-end period in the date range selector.
Prepare for:
How much traffic was there? (server capacity planning)
Which products sold best? (inventory stock)
What was the average AOV? (prepare bundle promotions)
When exactly did the peak start? (advertising timing)
Predictive metrics for advanced users
GA4 Predictive metrics like "Purchase probability" and "Churn probability" only become active after sufficient data (at least 1000 purchase events). For new webshops, this takes 3-6 months, but afterwards, you get machine learning predictions that assist with targeting.
Use cases for predictive audiences:
Target high purchase probability users with premium products
Win-back campaigns for high churn risk customers
VIP program 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
This article provided you with insights. Now it's time for action. Whether you want to build a profitable webshop, generate more revenue from performance marketing or SEO, or grow with AI marketing - we provide concrete support to help you move forward.
💬 Discuss your challenge directly with Frederiek: Schedule a free strategy consultation or send us a message
📧 Prefer to 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 about GA4 for Shopify
-
Basic configuration via the Shopify Google & YouTube app takes 1-2 hours for someone without a technical background. An 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.
-
No, Universal Analytics officially stopped on July 1, 2023. All tracking now occurs via GA4. Historical UA data will remain available in the old interface for 6 months but will then be deleted. Export important reports now as a backup via Google Sheets or PDF.
-
This is normal and has three causes. Firstly, GA4 filters bots and spam traffic more aggressively. Secondly, GA4 better respects cookie rejections through Consent Mode. Thirdly, GA4 counts user-centric rather than session-centric, which results in different numbers. A difference of 10-25% is standard, but your data is now more reliable and compliant.
-
The standard GA4 version is free and has no limits for 99% of webshops. Only from 10 million events per month, or if you need BigQuery export, is GA4 360 required, starting from €50,000 per year. For reference: an average webshop with 50,000 visitors per month generates approximately 500,000 events, well below the free tier limit.
-
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, you can export GA4 audiences to the platform via Customer Match or native integrations.
-
Yes, via three methods. Free via BigQuery export for 1TB of data per month (suitable for SQL queries). Via a 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.
-
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.
-
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 company's IP (check on whatismyip.com) and set the filter to "Exclude".
-
Initial events appear in real-time reports within 24 hours. For complete processing, including all dimensions and metrics, allow 24-48 hours. For statistical reliability of conversion rates and audience segments, a minimum of 30 days of data is required. Machine learning features, such as predictive metrics, require 3-6 months of data with at least 1000 conversions.
-
Events are all tracked actions (product views, add-to-carts, clicks, scrolls). Conversions are events that 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 conversions per property.
-
Yes, GA4 is the first version of Google Analytics that combines web and app data into a single property. For mobile apps, use the 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 & References
Google Analytics Documentation
Google Analytics Help – [GA4] Set up ecommerce events – https://support.google.com/analytics/answer/12200568
Google Developers – Measure ecommerce (GA4) – https://developers.google.com/analytics/devguides/collection/ga4/ecommerce
Shopify Integration
Shopify Help Center – Google Analytics Setup – https://help.shopify.com/en/manual/reports-and-analytics/google-analytics/google-analytics-setup