5 min read

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.

Difficulty
Relevance
20 items
01

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

beginneressential

Enable Google Analytics 4 through Shopify's native integration. This captures all storefront events: page views, add-to-cart, purchases, and customer data automatically.

Use Shopify's 'Enhanced ecommerce' setting to automatically track product impressions, clicks, and purchase details without custom code.

Configure Conversion Tracking

beginneressential

Set up purchase events as primary conversions in GA4. Define secondary conversions for add-to-cart and email signups to measure funnel performance.

Tag your email capture forms with GA4 event snippets so email list growth appears alongside purchase data in your conversion reports.

Map Product Data & Taxonomy

intermediaterecommended

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.

Use consistent product names and categories in GA4 as in Shopify to avoid mismatched revenue reports when slicing by product.

Enable Enhanced Ecommerce Events

beginneressential

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

intermediaterecommended

Build GA4 dashboards showing daily conversion rate, AOV, traffic source performance, and cart abandonment rate. Pin to your analytics workspace for daily review.

Include a daily revenue card and a CPA card segmented by traffic source so marketing spend decisions are data-backed.
02

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

intermediateessential

Standardize UTM tagging (source, medium, campaign, content) on all ad campaigns, email links, and social posts. GA4 will categorize all traffic consistently.

Create a UTM template in a shared spreadsheet with your marketing team to enforce naming rules (e.g., 'meta' not 'facebook', 'email-promo' not 'EmailPromo').

Implement Server-Side Tracking

advancedrecommended

Use Shopify Pixel or Google Tag Manager to send purchase data server-side. This bypasses ad blockers and provides cleaner attribution for paid channels.

Send transaction IDs and customer email hashes to your ad platforms (Meta, Google) via server-side pixels to match offline conversions back to ad spend.

Set Up Attribution Modeling

advancedrecommended

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

intermediateessential

Link your email platform (Klaviyo, Klaviyo) to GA4 to measure email click-through rate, unsubscribe rate, and revenue per email segment directly in GA4.

Use GA4's audience sync to push high-value customers or repeat purchasers back to Klaviyo for targeted post-purchase email campaigns.

Track Offline Conversions

intermediatenice-to-have

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.

Use customer email or phone as the matching key so online and offline journeys for the same customer appear in cohort reports.
03

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)

intermediateessential

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.

Break CLV by cohort (new vs. repeat buyers, high-AOV vs. low-AOV) to see which customer segments are most profitable and worth acquiring.

Monitor Repeat Purchase Rate

intermediateessential

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.

Compare repeat rate by traffic source (e.g., organic vs. paid) to identify which channels bring repeat-friendly customers, not just one-time bargain hunters.

Segment Customers by Cohort

advancedrecommended

Analyze customer behavior by acquisition date and source in GA4. Track how repeat purchase rate and CLV evolve for each cohort over 6 months.

Use cohort analysis to spot seasonality: if summer cohorts have lower repeat rates, invest more in winter acquisition to balance annual revenue.

Measure Email Engagement by Segment

intermediaterecommended

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

beginneressential

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.

Reduce your cart abandonment rate by 5% through UX fixes (auto-fill address, show trust badges), then measure impact on overall conversion rate and revenue.
04

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

intermediateessential

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.

Include both direct purchase ROAS and assisted conversion value (e.g., first-touch attribution) so you don't kill top-of-funnel campaigns that build repeat buyers.

Identify AOV Growth Opportunities

intermediaterecommended

Use Shopify's product analytics to find which items are bought together most often. Create bundle offers or upsell recommendations for high-affinity pairs.

A/B test bundled pricing (e.g., 'buy 2 for 15% off') vs. individual pricing to see if bundling increases average order value or just shifts revenue.

Forecast Inventory with Data

advancedrecommended

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.

Use Triple Whale's inventory turnover reports alongside GA4 to avoid overstocking slow movers while keeping fast-moving, high-margin items always available.

Automate Post-Purchase Engagement

intermediateessential

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.

Measure post-purchase email click-through rate and repeat purchase rate for each flow to optimize email subject lines and send frequency.

Benchmark Revenue Per Visitor

beginneressential

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.

If RPV is flat but conversion rate is up, AOV is falling—signal to focus on upselling. If conversion is flat but RPV is up, focus on customer quality.

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.

Track these metrics automatically

Product Analyst connects to your stack and surfaces the insights that matter.

Try Product Analyst — Free