Analytics Setup Guide for E-commerce Teams
Set up a data-driven analytics foundation for your e-commerce business. Learn how to configure GA4, Shopify, and key tools to track conversion rates, customer lifetime value, and optimize revenue per visitor.
Foundational Analytics Setup
Connect your e-commerce platform to analytics and install core tracking. This foundation enables accurate reporting on conversion rate, AOV, and customer acquisition cost.
Install GA4 with Shopify
Enable Google Analytics 4 through Shopify's native integration. This captures all storefront events: page views, add-to-cart, purchases, and customer data automatically.
Configure Conversion Tracking
Set up purchase events as primary conversions in GA4. Define secondary conversions for add-to-cart and email signups to measure funnel performance.
Map Product Data & Taxonomy
Import product categories, tags, and attributes into GA4 via your product feed. This lets you analyze performance by product type, price range, and inventory status.
Enable Enhanced Ecommerce Events
Activate detailed event tracking for view_item, add_to_cart, begin_checkout, and remove_from_cart. These reveal where customers drop out in your funnel.
Create Custom Dashboards
Build GA4 dashboards showing daily conversion rate, AOV, traffic source performance, and cart abandonment rate. Pin to your analytics workspace for daily review.
Advanced Tracking & Attribution
Move beyond last-click attribution to understand true channel contribution. Implement cross-device and offline tracking to capture the full customer journey.
Configure UTM Parameters
Standardize UTM tagging (source, medium, campaign, content) on all ad campaigns, email links, and social posts. GA4 will categorize all traffic consistently.
Implement Server-Side Tracking
Use Shopify Pixel or Google Tag Manager to send purchase data server-side. This bypasses ad blockers and provides cleaner attribution for paid channels.
Set Up Attribution Modeling
Enable GA4's multi-touch attribution models (data-driven, linear, time-decay). Compare how ROAS changes based on which channel gets credit for each conversion.
Connect Klaviyo to GA4
Link your email platform (Klaviyo, Klaviyo) to GA4 to measure email click-through rate, unsubscribe rate, and revenue per email segment directly in GA4.
Track Offline Conversions
If you sell in-store or via phone, manually upload offline transactions to GA4. This completes the picture of total revenue and ROAS by channel.
Customer Metrics & Lifetime Value
Shift focus from one-time transactions to repeat value. Calculate and track CLV, repeat purchase rate, and engagement metrics to guide retention spending.
Calculate Customer Lifetime Value (CLV)
Use Shopify's built-in customer reports or import customer purchase history into a spreadsheet. Calculate: (avg order value × repeat purchase rate) / churn rate = CLV.
Monitor Repeat Purchase Rate
In GA4, create a metric tracking the % of customers who buy more than once within 90 days. This KPI reveals retention health and product-market fit.
Segment Customers by Cohort
Analyze customer behavior by acquisition date and source in GA4. Track how repeat purchase rate and CLV evolve for each cohort over 6 months.
Measure Email Engagement by Segment
Track email click-through rate, open rate, and revenue per recipient in Klaviyo and sync to GA4. Isolate which email types (abandoned cart, winback) drive repeat purchases.
Analyze Cart Abandonment Patterns
Use Hotjar or Shopify's abandonment reports to identify where customers drop out: shipping cost, payment options, form friction. Segment by new vs. repeat buyers.
Optimization & Decision-Making
Use analytics to drive daily decisions: optimize ad spend by ROAS, bundle products by AOV potential, and forecast inventory based on demand signals.
Optimize Ad Spend by ROAS
Track ROAS (return on ad spend) by campaign in Meta Ads Manager and Google Ads. Pause campaigns under 2.5x ROAS, scale winners above 4x ROAS weekly.
Identify AOV Growth Opportunities
Use Shopify's product analytics to find which items are bought together most often. Create bundle offers or upsell recommendations for high-affinity pairs.
Forecast Inventory with Data
Link GA4 conversion rate and repeat purchase rate trends to inventory forecasting. If repeat purchase rate is rising, stock more SKUs popular with loyal customers.
Automate Post-Purchase Engagement
Set up Klaviyo flows triggered by GA4 purchase events: thank you email (day 0), care tips (day 3), winback offer if no repeat purchase within 45 days.
Benchmark Revenue Per Visitor
Calculate revenue per visitor (RPV) = total revenue / total users. Track this weekly by traffic source. RPV combines conversion rate and AOV, so it's your master metric.
Key Takeaway
Your analytics setup pays dividends when you move beyond vanity metrics (traffic, bounce rate) to actionable KPIs like CLV, repeat purchase rate, and ROAS. Monitor these weekly to optimize inventory, email, and ad spend.