Conversion tracking setup: Step-by-step

Step-by-step conversion tracking setup for Shopify and WooCommerce: Google Analytics 4 installation, verification, common problems, and maintenance.

a tablet and a laptop
a tablet and a laptop

Why proper setup matters

Broken conversion tracking shows 1.8% conversion rate when actual rate is 2.6%—you think performance is mediocre, continue ineffective optimizations, miss revenue opportunities. Or worse: tracking shows 3.2% when actual is 2.1%—you believe everything works well, stop improving, fall behind competitors. Accurate tracking is prerequisite for intelligent business decisions. One day setting up tracking correctly prevents months of decisions based on wrong information.

Most stores have subtle tracking errors catching 90-95% of conversions but missing 5-10%. Errors aren't obvious—reports show reasonable numbers, just slightly wrong. Symptoms: analytics conversion rate differs from platform rate by 0.3+ percentage points, order count in analytics doesn't match actual orders, sudden unexplained conversion rate drops without traffic changes. Systematic setup prevents these silent failures.

Before you start: Choose your tracking approach

Platform analytics versus external analytics

E-commerce platforms (Shopify, WooCommerce, BigCommerce) include built-in analytics tracking conversions automatically. Shopify Analytics captures every order without setup—zero-configuration, always accurate for order counting. External analytics (Google Analytics 4, Adobe Analytics) require manual setup but provide deeper traffic analysis and cross-site tracking. Most stores should use both: platform analytics as conversion rate source of truth, external analytics for traffic source insights.

If forced to choose only one: platform analytics for small stores (under $500k annual revenue), external analytics for larger stores needing advanced segmentation. Platform analytics are sufficient for operational decisions—you know conversion rate, best products, traffic sources. External analytics add cross-device tracking, funnel visualization, audience segmentation—valuable but not essential for basic conversion tracking.

Understanding what you're measuring

Conversion tracking measures: number of completed orders divided by number of sessions. Session = continuous browsing period ending after 30 minutes inactivity or midnight. Order = successfully completed transaction (payment processed, order confirmed). Count completed orders only, not payment attempts. Failed payment that customer retries successfully = 1 order. Canceled orders still count as conversions (cancellation affects retention metrics, not conversion metrics). Clear definitions prevent measurement confusion.

Setting up Shopify conversion tracking

Built-in analytics (already working)

Shopify tracks conversions automatically from installation. No setup required. Verify tracking works: Shopify Admin → Analytics → Reports → Conversion over time. Should show data matching your order count. If conversion rate appears but doesn't match expectations, likely due to high bot traffic (inflating sessions) or incorrect timezone (splitting daily stats across days). Shopify analytics are reliable—if numbers seem wrong, problem is usually traffic quality, not tracking accuracy.

Configure timezone correctly: Settings → General → Store details → Timezone. Should match where you operate business and check reports. Wrong timezone splits daily performance across two days in reports—today's orders might show in yesterday's report. Once set correctly, don't change timezone unless actually relocating business—changes affect historical data comparisons.

Excluding internal traffic

Staff browsing while logged in doesn't count in Shopify Analytics automatically—platform filters authenticated staff sessions. Problem: staff browsing while not logged in (testing on different devices, checking mobile experience) contaminates metrics. Small store with 800 monthly sessions: 30 internal testing sessions = 3.75% contamination, ~0.1 percentage point conversion rate error. Acceptable contamination. Large internal team testing frequently needs IP filtering or VPN-based separation.

Connecting Google Analytics 4 to Shopify

Install Google channel app: Shopify Admin → Apps → Shopify App Store → Search “Google Channel” → Install. Connects Shopify to Google Ads and Google Analytics 4 simultaneously. During setup, authenticate with Google account, select or create GA4 property. App automatically implements e-commerce tracking code on all pages including checkout—no manual code editing required. Tracks page views, add-to-cart events, checkout initiation, purchases with revenue data.

Verify installation after 24 hours: Google Analytics → Reports → Monetization → E-commerce purchases. Should show purchase events with revenue matching Shopify order data from same period. Common problem: events appear but revenue is $0 or wrong—indicates currency setting mismatch. Fix: GA4 Admin → Data streams → Web data stream → Configure tag settings → Show more → Adjust currency settings to match Shopify store currency.

Setting up WooCommerce conversion tracking

WooCommerce Analytics (built-in)

WooCommerce includes Analytics dashboard showing conversion rate, revenue, orders. Available: WooCommerce → Analytics → Overview. Unlike Shopify, WooCommerce analytics sometimes have tracking gaps depending on theme and checkout customizations. Verify accuracy: compare WooCommerce Analytics order count to actual orders from WooCommerce → Orders for same date range. Should match exactly. If analytics shows fewer orders, tracking setup needs attention.

Google Analytics 4 for WooCommerce

Install GA4 plugin: Plugins → Add New → Search “Site Kit by Google” → Install → Activate. Site Kit handles GA4 connection and tracking code automatically. Authenticate with Google account, select or create GA4 property, enable Analytics module. For e-commerce tracking specifically: Install additional plugin “Enhanced E-commerce for WooCommerce Store” or “GA Google Analytics” (multiple reliable options available). These plugins send purchase data to GA4 properly formatted.

Alternative manual setup for developers: Create GA4 property, get Measurement ID (format: G-XXXXXXXXXX), add tracking code to theme header. Then implement e-commerce event tracking: purchase event firing on order confirmation page with transaction ID, revenue, items purchased. Manual setup provides maximum control but requires technical knowledge. Most stores should use plugins avoiding custom code maintenance.

Configuring e-commerce events

After plugin installation, verify e-commerce events track correctly: GA4 → Configure → DebugView → Visit your store on different device, add product to cart, complete test purchase. DebugView should show: view_item (product page), add_to_cart, begin_checkout, purchase (order confirmation). Each event should include relevant parameters (item details, revenue, transaction ID). If events missing or parameters empty, plugin configuration needs adjustment—check plugin settings for e-commerce tracking toggle or API key requirements.

Common tracking problems and fixes

Analytics shows different conversion rate than platform

Small differences (0.1-0.3 percentage points) are normal—platforms define sessions slightly differently. Google Analytics: 30-minute inactivity timeout, resets at midnight GMT. Shopify: similar but different technical implementation. These definition differences create minor variance. Large differences (0.5+ percentage points) indicate tracking errors requiring investigation. Compare order counts first: if analytics shows 87 orders but platform shows 95 orders, analytics tracking code misses some purchases.

Diagnose missing orders: Check if analytics tracking code appears on order confirmation page (View Page Source → search for GA4 Measurement ID). Checkout page builders and custom checkout flows sometimes exclude analytics code from final confirmation page—purchase completes but tracking never fires. Solution: ensure analytics code loads on all pages including checkout and confirmation. For Shopify using Google Channel app, this happens automatically. For WooCommerce, verify your theme includes wp_head() and wp_footer() hooks where tracking code injects.

Bot traffic inflating sessions

Bots generate sessions without purchase intent, artificially lowering conversion rate. Symptoms: conversion rate drops suddenly without business changes, very high bounce rate (70-85%), extremely short session duration (under 10 seconds average), traffic spikes from unusual locations. Most analytics platforms filter obvious bots automatically, but sophisticated bots evade filters. GA4: Admin → Data Settings → Data Filters → ensure “Internal Traffic” and “Developer Traffic” filters are active.

Additional bot filtering: GA4 → Admin → Data Settings → Data collection → Enable “Bot filtering.” Filters known bots and spiders from reports. Not perfect but removes 70-80% of bot traffic. For remaining bot contamination: accept as unavoidable measurement noise. Sophisticated bots mimicking human behavior can't be filtered reliably without also filtering real customers. Track conversion rate trends rather than absolute accuracy—even with 10% bot contamination, trend direction (improving or declining) remains valid.

Cross-device tracking gaps

Customer browses mobile Monday, purchases desktop Wednesday. Standard analytics: 1 mobile session (no conversion), 1 desktop session (conversion). Reality: mobile session contributed to purchase but receives no credit. This isn't tracking “error” but limitation of session-based measurement. Can't easily fix without sophisticated cross-device identity resolution (requires user login for tracking across devices). Accept that device-specific conversion rates undercount mobile contribution.

Implication: use device-level conversion rates for identifying technical problems (mobile checkout broken) not for attribution. Mobile showing 1.2% conversion versus desktop 3.8% is normal cross-device behavior plus inherent mobile friction. Mobile showing 0.3% conversion suggests usability problem requiring investigation. Use device metrics directionally rather than as precise performance measurement.

Verifying your tracking works correctly

Complete test purchase

Best verification method: actually purchase from your store. Use test product or real product (then refund/cancel order). Complete entire checkout flow including payment processing. Then verify: 1) Analytics shows 1 new session, 2) Analytics shows 1 purchase event with correct revenue, 3) E-commerce report includes transaction with correct transaction ID matching platform order number. If all three verify, tracking works correctly.

Test multiple scenarios: desktop purchase, mobile purchase, different browsers (Chrome, Safari, Firefox). Browser privacy features and ad blockers sometimes interfere with analytics. Can't force customers to disable ad blockers, but knowing tracking loss percentage informs accuracy assessment. Typical tracking loss: 5-15% of actual orders due to ad blockers and strict privacy settings. This is permanent measurement limitation, not fixable problem.

Compare platform orders to analytics orders monthly

Regular audit catches tracking degradation. Monthly review: count orders in platform (Shopify/WooCommerce orders report) versus orders in analytics (GA4 e-commerce report) for same 30-day period. Example: Platform shows 118 orders, GA4 shows 112 orders = 95% tracking coverage (5% loss from ad blockers/privacy). Acceptable. Platform shows 118 orders, GA4 shows 87 orders = 74% tracking coverage (26% loss). Unacceptable—indicates tracking code failure requiring investigation.

Document expected discrepancy. If you know your tracking typically captures 90-95% of orders, conversion rate of 2.3% in analytics likely represents 2.4-2.5% actual conversion rate. Knowing systematic undercounting prevents misinterpreting performance. Many stores think they convert 2.0% when they actually convert 2.2%—small difference but affects benchmarking and target-setting.

Advanced tracking considerations

Multi-channel attribution

Customer path: sees Instagram ad Friday, clicks but doesn't buy. Searches Google Tuesday, clicks organic result, purchases. Standard attribution credits organic search with conversion. Reality: Instagram initiated journey. Last-click attribution (default in most analytics) undercredits awareness channels and overcredits direct-response channels. For basic conversion tracking, last-click is fine—just understand it measures channel of final conversion, not channel of initial discovery.

Advanced stores can enable multi-touch attribution in GA4: Admin → Attribution → Attribution settings → Configure attribution models (linear, time-decay, position-based). These models distribute conversion credit across multiple touchpoints. Useful for stores with complex customer journeys (luxury, high-ticket, long consideration). Overkill for stores with simple journeys (impulse purchases, low-price consumables). Start with last-click attribution, add multi-touch after mastering basics.

Enhanced e-commerce tracking

Basic tracking captures purchases. Enhanced tracking captures full funnel: product impressions, product clicks, add-to-cart, remove-from-cart, checkout steps, purchases. Provides detailed funnel analysis showing where drop-offs occur. Setup complexity increases substantially—requires additional event implementation for each micro-conversion. Benefit: granular optimization insights. Cost: development time and ongoing maintenance. Recommended for stores with technical resources and optimization maturity. Basic stores should master purchase tracking before attempting enhanced implementation.

Server-side tracking

Standard tracking: JavaScript code on website sends data to analytics platform. Problem: ad blockers and privacy features block JavaScript tracking. Server-side tracking: your server sends data to analytics platform directly, bypassing browser-based blocking. Benefit: near-100% tracking accuracy. Cost: technical complexity requiring server configuration and ongoing maintenance. Only worthwhile for large stores (500+ orders monthly) where tracking accuracy directly affects million-dollar decisions. Small stores should accept client-side tracking limitations rather than investing server-side complexity.

Maintaining tracking accuracy over time

Check after platform updates

Theme updates, plugin updates, checkout customizations can break tracking inadvertently. After any technical change to website: complete test purchase, verify analytics captures order correctly. Catching tracking breaks immediately prevents weeks of missing data. Many mysterious “conversion rate drops” are actually tracking failures, not performance declines. Quick verification after changes catches problems before data gaps accumulate.

Quarterly tracking audits

Even without changes, tracking can degrade slowly. Quarterly verification (every 90 days): compare 30-day order count in platform versus analytics, verify discrepancy matches expected loss percentage (5-15% typical), test purchase on multiple devices, review analytics events for completeness. 30-minute quarterly audit catches subtle tracking erosion before it corrupts business decisions. Schedule reminder preventing months between audits.

Document your tracking setup

Write down: which analytics platform you use, which tracking method (plugin name or manual code), expected order tracking accuracy percentage (90%, 95%, etc.), known limitations (cross-device undercounting mobile, ad blockers causing 10% loss, etc.). Seems obvious today, becomes unclear six months later when new team member asks “why do analytics and Shopify show different conversion rates?” Documentation prevents confusion and wasted investigation time.

Simple tracking maintenance workflow

Daily: check conversion rate in analytics (30 seconds)—purpose is catching sudden drops indicating technical problems, not analyzing performance. Sudden drop to 0% or near-0% suggests checkout break requiring immediate investigation. Normal daily variance (1.8% to 2.3%) requires no action. Weekly: compare analytics order count to platform order count for past 7 days. Should match within expected tracking loss percentage. Monthly: detailed audit comparing 30-day analytics to platform, verify tracking coverage, review funnel performance.

While detailed conversion tracking requires platform setup, Peasy delivers your essential daily metrics automatically via email every morning: Conversion rate, Sales, Order count, Average order value, Sessions, Top 5 best-selling products, Top 5 pages, and Top 5 traffic channels—all with automatic comparisons to yesterday, last week, and last year. Monitor conversion rate daily without manual dashboard checking or complex setup. Starting at $49/month. Try free for 14 days.

Frequently asked questions

Do I need Google Analytics if my platform already tracks conversions?

Not required but helpful. Platform analytics (Shopify/WooCommerce) suffice for conversion rate, orders, revenue, products, traffic sources. Google Analytics adds: audience demographics, detailed user flow analysis, cross-site tracking if you have multiple properties, integration with Google Ads. Small stores can operate entirely on platform analytics. Larger stores benefit from GA4's advanced segmentation and analysis capabilities.

Why does Google Analytics show lower conversion rate than Shopify?

Two reasons: 1) Ad blockers and privacy settings prevent GA4 from tracking 5-15% of orders that Shopify captures (Shopify tracks on server-side, GA4 tracks client-side via JavaScript). 2) Session definition differences—GA4 and Shopify define sessions slightly differently, creating minor denominator variance. Use Shopify conversion rate as source of truth for operational decisions, GA4 for traffic analysis and funnel insights.

How long does it take for tracking to start working after setup?

Immediate for page views and sessions (data appears within minutes). E-commerce events (purchases) require actual order to test—make test purchase, should appear in analytics within 24 hours (sometimes 1-2 hours but allow 24 for safety). If no purchase events appear 48 hours after test order, tracking setup has problems requiring investigation. Real-time reports in GA4 show events within minutes for immediate verification.

Should I track micro-conversions like newsletter signups and add-to-cart?

Yes for optimization analysis, no for calling them “conversion rate.” Conversion rate in e-commerce specifically means purchase conversion. Track add-to-cart rate, email signup rate, product view rate as separate funnel metrics. These micro-conversions inform where funnel problems occur but don't replace purchase conversion as primary success metric. Calling add-to-cart a “conversion” creates terminology confusion—only completed purchases are conversions.

Peasy delivers key metrics—sales, orders, conversion rate, top products—to your inbox at 6 AM with period comparisons.

Start simple. Get daily reports.

Try free for 14 days →

Starting at $49/month

Peasy delivers key metrics—sales, orders, conversion rate, top products—to your inbox at 6 AM with period comparisons.

Start simple. Get daily reports.

Try free for 14 days →

Starting at $49/month

© 2025. All Rights Reserved

© 2025. All Rights Reserved

© 2025. All Rights Reserved