The Ultimate GA4 Setup Guide for eCommerce Stores

The Ultimate GA4 Setup Guide for eCommerce Stores


Introduction

As Universal Analytics sunsets, GA4 (Google Analytics 4) is now the go-to analytics platform for eCommerce. Unlike its predecessor, GA4 is event-based and built for cross-platform tracking, making it ideal for modern Shopify stores and DTC brands.


Why GA4 Matters for eCommerce

  • Tracks the full customer journey across devices

  • Supports enhanced eCommerce tracking

  • Allows event customization without code changes

  • Better integration with Google Ads and BigQuery

  • Cookieless and future-ready for privacy compliance


Step-by-Step GA4 Setup for Shopify Stores

Step 1: Create a GA4 Property

  • Go to Google Analytics

  • Click Admin > Create Property

  • Select “GA4” and complete setup

Step 2: Get Your Measurement ID

  • After property creation, go to Admin > Data Streams

  • Click on your Web stream

  • Copy the Measurement ID (starts with G-XXXXXX)


Step 3: Add GA4 to Shopify via Google Tag Manager (Recommended)

  1. Log in to Google Tag Manager

  2. Create a new tag:

    • Tag Type: Google Analytics: GA4 Configuration

    • Measurement ID: Paste your GA4 ID

    • Trigger: All Pages

  3. Save, submit, and publish your container


Step 4: Enable Enhanced Measurement

  • GA4 automatically tracks:

    • Page views

    • Scrolls

    • Outbound clicks

    • Site search

    • Video engagement

  • Go to your Data Stream settings and toggle on these features


Step 5: Track eCommerce Events

To get full conversion data like product views, add-to-cart, and purchases:

Option 1: Use Shopify’s GA4 Integration Apps

  • Apps like Elevar, Littledata, or Shopify GA4 Kit automate event tracking setup

  • These apps add event code and send eCommerce data to GA4

Option 2: Manually Push Events via GTM

  • Use GTM to fire events like add_to_cart, begin_checkout, and purchase

  • Example: Use a page view trigger for /thank_you to send a purchase event


Step 6: Set Up Conversions

  • In GA4, go to Admin > Events

  • Mark key events like purchase, generate_lead, or begin_checkout as conversions


Step 7: Link GA4 to Other Tools

  • Google Ads – for better attribution and remarketing

  • BigQuery – for advanced analytics and reporting

  • Looker Studio – for visual dashboards


Tips for Success

  • Use GA4 DebugView to test events in real-time

  • Create custom audiences to feed into ad campaigns

  • Regularly review data anomalies and funnel drop-offs


Conclusion

Setting up GA4 properly is not just about tracking—it’s about understanding your customer’s journey, optimizing marketing efforts, and making smart, data-driven decisions. For eCommerce success in 2025 and beyond, GA4 is a must-have tool.


Want experts to set up GA4 and advanced eCommerce tracking for you?
👉 Reach out to RootSyntax — your Shopify analytics partner.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.