Shopify Analytics Setup Guide

Complete guide to setting up analytics for your Shopify store. Track sales, customer behavior, and marketing performance with the right analytics tools.

Why Analytics for Shopify?

Shopify provides basic analytics, but third-party tools offer deeper insights into customer behavior, marketing attribution, and business performance.

Native Shopify Analytics

  • Basic sales reports
  • Traffic sources
  • Product performance
  • Customer insights

Third-Party Analytics

  • Advanced attribution
  • Customer lifetime value
  • Marketing ROI
  • Funnel analysis

Google Analytics 4 Setup

The most popular analytics solution for Shopify stores:

Method 1: Shopify Admin (Easiest)

1

Get GA4 Measurement ID

Create a GA4 property and copy your Measurement ID (starts with G-).

2

Add to Shopify

Go to Shopify Admin → Online Store → Preferences → Google Analytics → Paste your Measurement ID → Save.

3

Enable Enhanced E-commerce

In the same section, check "Use enhanced ecommerce" to track detailed purchase data.

Method 2: Google Tag Manager

Recommended for: Advanced tracking, multiple analytics tools, custom events

1. Set Up Google Tag Manager

Create a GTM container and get your container ID (GTM-XXXXXXX).

2. Install GTM in Shopify

Go to Online Store → Themes → Actions → Edit code → theme.liquid

Add GTM code in <head> and <body> sections.

3. Configure GA4 in GTM

Create GA4 Configuration tag and set up e-commerce tracking triggers.

Shopify Plus Analytics Features

If you're on Shopify Plus, you have access to additional analytics:

Advanced Reports

  • Custom report builder
  • Data export capabilities
  • Advanced customer segmentation
  • Multi-channel attribution

Analytics API

  • Programmatic data access
  • Custom dashboard creation
  • Third-party integrations
  • Automated reporting

E-commerce Event Tracking

Essential events to track for e-commerce analytics:

Automatic Events (GA4)

GA4 automatically tracks these when Enhanced E-commerce is enabled:

  • view_item: Product page views
  • add_to_cart: Items added to cart
  • begin_checkout: Checkout process started
  • purchase: Completed transactions

Custom Events

Track additional user actions:

  • Newsletter signups
  • Product reviews submitted
  • Wishlist additions
  • Search queries
  • Filter usage

Recommended Third-Party Tools

Popular analytics tools for Shopify stores:

Triple Whale

Marketing attribution and ROAS tracking specifically for Shopify.

  • Multi-touch attribution
  • Ad spend tracking
  • Profit margin analysis

Northbeam

Advanced attribution and customer journey analytics.

  • Customer journey mapping
  • Cross-channel attribution
  • LTV prediction

Klaviyo

Email and SMS marketing with built-in analytics.

  • Email campaign performance
  • Customer segmentation
  • Revenue attribution

Gorgias

Customer support analytics and insights.

  • Support ticket analytics
  • Customer satisfaction tracking
  • Response time metrics

Key Metrics to Track

Essential metrics for Shopify store success:

Revenue Metrics

  • Total revenue
  • Average order value (AOV)
  • Customer lifetime value (CLV)
  • Monthly recurring revenue
  • Revenue per visitor

Conversion Metrics

  • Conversion rate
  • Cart abandonment rate
  • Checkout completion rate
  • Product page conversion
  • Email signup rate

Customer Metrics

  • New vs returning customers
  • Customer acquisition cost (CAC)
  • Repeat purchase rate
  • Customer retention rate
  • Average orders per customer

Marketing Metrics

  • Return on ad spend (ROAS)
  • Cost per acquisition (CPA)
  • Traffic sources
  • Campaign performance
  • Email open/click rates

Verify Your Setup

Confirm analytics are working correctly:

Test Purchase Flow

Make a test purchase and verify events fire in GA4 Real-time reports.

Check Event Parameters

Verify purchase events include correct transaction ID, value, and product data.

Use Debug Tools

Install Google Analytics Debugger extension or use GA4 DebugView to see events in real-time.

Best Practices

✅ Do

  • Enable Enhanced E-commerce for detailed tracking
  • Set up conversion goals for key actions
  • Track customer lifetime value
  • Monitor cart abandonment rates
  • Use UTM parameters for campaign tracking
  • Regularly review and optimize based on data

❌ Don't

  • Ignore mobile analytics (most traffic is mobile)
  • Forget to exclude test transactions
  • Track too many custom events (focus on what matters)
  • Ignore cart abandonment data
  • Set up analytics and never check them

Next Steps

Now that analytics are set up, start tracking your store's performance and make data-driven decisions to grow your business.