Analytics 10 min read

WooCommerce Google Analytics 4 Integration: Setup Guide (2025)

Set up Google Analytics 4 for WooCommerce. Track ecommerce events, revenue attribution, and customer behavior with enhanced measurement.

Quick Answers

What's the best Google Analytics plugin for WooCommerce?

The official 'WooCommerce Google Analytics' plugin by WooCommerce is recommended. MonsterInsights and Analytify are popular alternatives with additional features and easier setup.

Is WooCommerce Google Analytics free?

Yes, the official plugin is free. Google Analytics 4 is also free for up to 10 million events per month. Premium alternatives like MonsterInsights Pro offer extra features.

Google Analytics 4 provides essential insights for WooCommerce stores. This guide covers complete setup for ecommerce tracking and reporting.

WooCommerce
integrates with
Google Analytics
Analytics
TOP PICK

WooCommerce Google Analytics

Analytics Integration for WooCommerce
2.8
117 reviews
Price
Free
Active Users
200,000+
Last Updated
2025-12-21

Why GA4 for WooCommerce?

Analytics benefits:

FeatureBenefit
Revenue trackingSee sales from each channel
Customer journeyFull path to purchase
Product insightsTop performers, underperformers
Marketing ROICampaign attribution
PredictionsPurchase probability

Key metrics to track:

  • Revenue by traffic source
  • Cart abandonment rate
  • Product performance
  • Customer lifetime value

Plugin Options

Official Plugin

WooCommerce Google Analytics

  • Free from WooCommerce
  • Basic GA4 support
  • Essential ecommerce tracking

Premium Alternatives

PluginFeaturesPrice
MonsterInsightsDashboard, events, forms$99/yr+
AnalytifyReports in WordPress$39/yr+
PixelYourSiteMulti-platform tracking$135/yr+

Setting Up GA4

Step 1: Create GA4 Property

  1. Go to analytics.google.com
  2. Click Admin (gear icon)
  3. Click Create Property
  4. Enter store name
  5. Select business details
  6. Create Web stream
  7. Copy Measurement ID (G-XXXXXXXXXX)

Step 2: Install Plugin

  1. Go to Plugins > Add New
  2. Search “WooCommerce Google Analytics”
  3. Install and activate
  4. Or search “Google Analytics for WooCommerce”

Step 3: Configure Plugin

  1. Go to WooCommerce > Settings > Integration
  2. Click Google Analytics
  3. Enter Measurement ID
  4. Enable options:
    • Enhanced ecommerce tracking
    • Enable ads features
    • Use global site tag
Data Flow
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#e0f2fe', 'primaryTextColor': '#0369a1', 'primaryBorderColor': '#0369a1', 'lineColor': '#64748b', 'secondaryColor': '#f0fdf4', 'tertiaryColor': '#fef3c7'}}}%% graph LR A[WooCommerce Store] -->|Events & Pageviews| B[WooCommerce] A -->|Transactions| B B -->|Attribution Data| C[Google Analytics] C -->|Insights| D[Dashboard] D -->|Optimization| A
Real-time sync Scheduled sync

Step 4: Verify Tracking

  1. Open your store in new tab
  2. Browse products, add to cart
  3. In GA4, go to Reports > Realtime
  4. Confirm events appear

Ecommerce Events

Events Tracked Automatically

EventTriggerData
view_itemProduct page viewProduct details
view_item_listCategory viewProduct list
add_to_cartAdd to cart clickItem + quantity
remove_from_cartRemove from cartItem removed
begin_checkoutCheckout startCart contents
add_shipping_infoShipping selectedMethod
add_payment_infoPayment enteredType
purchaseOrder completeFull transaction

Purchase Event Data

{
  transaction_id: "12345",
  value: 149.99,
  currency: "USD",
  tax: 12.50,
  shipping: 8.99,
  items: [{
    item_id: "SKU-001",
    item_name: "Product Name",
    price: 49.99,
    quantity: 3,
    item_category: "Category"
  }]
}

Configuring Reports

Ecommerce Reports

Access in GA4:

  1. Reports > Monetization > Overview
  2. Ecommerce purchases
  3. Purchase journey

Key Reports to Use

Revenue by source:

  • Traffic source performance
  • Campaign effectiveness
  • Channel comparison

Product performance:

  • Top selling products
  • Views to purchase rate
  • Revenue per product

Checkout behavior:

  • Funnel steps
  • Drop-off points
  • Completion rate

Conversions Setup

Mark Events as Conversions

  1. Go to Admin > Events
  2. Find purchase event
  3. Toggle Mark as conversion

Recommended conversions:

  • purchase (essential)
  • add_to_cart
  • begin_checkout
  • sign_up

Link GA4 to Google Ads:

  1. Go to Admin > Google Ads Links
  2. Click Link
  3. Select Google Ads account
  4. Import conversions

Advanced Tracking

User ID Tracking

Track logged-in users:

  1. Enable in plugin settings
  2. Matches user across devices
  3. Better customer journey data

Custom Events

Track additional actions:

// Newsletter signup
gtag('event', 'newsletter_signup', {
  'event_category': 'engagement',
  'event_label': 'footer_form'
});

// Product quick view
gtag('event', 'quick_view', {
  'item_id': productId,
  'item_name': productName
});

Cross-Domain Tracking

If using multiple domains:

  1. Go to Data stream settings
  2. Configure cross-domain
  3. Add all domains

Troubleshooting

Events Not Tracking

Causes:

  • Plugin not configured
  • JavaScript errors
  • Caching issues

Solutions:

  1. Verify Measurement ID
  2. Check browser console
  3. Clear all caches
  4. Use GA Debug extension

Revenue Not Matching

Causes:

  • Currency issues
  • Tax/shipping calculation
  • Order status timing

Solutions:

  1. Verify currency settings
  2. Check included amounts
  3. Compare order counts
  4. Review tracking triggers

Duplicate Events

Causes:

  • Multiple tracking codes
  • Theme also tracking
  • Multiple plugins

Solutions:

  1. Audit tracking codes
  2. Remove duplicates
  3. Use single method
  4. Check theme settings

MonsterInsights Setup

For easier setup:

Step 1: Install

  1. Install MonsterInsights plugin
  2. Run setup wizard
  3. Connect Google account
  4. Select GA4 property

Step 2: Enable Ecommerce

  1. Go to Insights > Settings > Ecommerce
  2. Enable WooCommerce tracking
  3. Save changes

Step 3: View Reports

  1. Go to Insights > Reports
  2. See revenue, conversions, products
  3. Top products and categories

Best Practices

Data Quality

  • Verify tracking regularly
  • Monitor real-time during changes
  • Compare with WooCommerce reports
  • Document tracking setup

Privacy Compliance

  • Configure consent mode
  • Use IP anonymization
  • Set data retention
  • Cookie consent banner

Performance

  • Use gtag.js (not analytics.js)
  • Load asynchronously
  • Consider Google Tag Manager
  • Monitor page speed

GA4 vs Universal Analytics

FeatureUniversal AnalyticsGA4
StatusDeprecatedCurrent
ModelSessionsEvents
EcommerceEnhanced EcommerceGA4 Ecommerce
Machine learningLimitedBuilt-in
PrivacyCookie-dependentPrivacy-centric

Note: Universal Analytics stopped processing new data in July 2023.

2025 Snapshot

Quick benchmarks for the Google Analytics workflow. Use these as planning ranges, then validate against your own data.

Data point20242025Why it matters
Attribution stabilization period2–4 weeks2–4 weeksAvoids overreacting to noisy early data
Data freshness (typical)Hourly–dailyHourly–dailySets expectations for reporting dashboards
Core metrics to trackLTV, CAC, ROASLTV, CAC, ROASKeeps analysis consistent across channels
Implementation time (basic)30–90 min30–90 minTime to connect data sources and validate

Practical Implementation Notes

Data sync and ownership

Most WooCommerce integrations follow the same lifecycle: a one‑time historical import (customers, products, orders) followed by ongoing incremental updates via API/webhooks. In practice, the biggest failures come from identity and mapping—not from missing features. Before you activate anything customer‑facing, decide which system is the source of truth for customer identity (email vs phone), consent flags, segmentation, and lifecycle fields.

Treat the first week as a controlled rollout. Start with a small segment (internal addresses or a low‑risk cohort), validate that events fire exactly once, and then scale automation volume. This approach prevents silent double‑sending, broken attribution, and hard‑to‑debug “it looks connected but nothing happens” situations.

QA checklist (run once, then reuse)

Use a seed dataset (test customers, a few SKUs, a low‑value test order) to run an end‑to‑end path: signup → first purchase → fulfillment → refund. Confirm that reporting matches your store’s order IDs and timestamps.

Operational checks:

  • App permissions/scopes match the features you actually use
  • Timezone aligns across scheduled sends, reporting windows, and dashboards
  • Edge cases are represented correctly (partial refunds, cancellations, multi‑location fulfillments)
  • Baselines are captured so you can measure lift after go‑live

Analytics workflow notes

Analytics integrations usually “work” quickly, but trustworthy decisions take longer. Give attribution a stabilization period, validate event definitions, and lock a measurement plan before you compare tools. Small differences (session windows, dedup rules, last‑click vs multi‑touch) can change conclusions.

Practical checks:

  • Validate a single purchase end‑to‑end (UTM → session → conversion → revenue)
  • Align definitions for CAC/ROAS/LTV across reports
  • Save baselines so you can measure lift after changes

Next Steps

After setup:

  1. Verify events - Check real-time report
  2. Configure conversions - Mark key events
  3. Link Google Ads - For attribution
  4. Build dashboards - Custom explorations
  5. Set up alerts - Monitor anomalies

WooCommerce + Google Analytics implementation checklist (2025)

This section adds practical “make it stable” steps you can use after you install the app/connector. It’s intentionally lightweight: the goal is fewer sync surprises, cleaner reporting, and easier troubleshooting.

1) Quick setup checklist

  • Permissions first: grant only the scopes you need (orders/customers/products as required) and document who owns the admin credentials.
  • Data mapping: confirm how email, phone, currency, and SKU are mapped between WooCommerce and Google Analytics.
  • Historical import: decide how far back to import orders/customers (avoid importing years of data if you don’t need it).
  • Deduplication rules: pick one unique identifier per object (usually email for customers, order ID for orders) to prevent doubles.
  • Alerts: set a lightweight alert path (email/Slack) for failed syncs, auth expiry, and API rate limits.

2) Data you should verify after connecting

Most integration issues show up in the first hour if you test the right things. Use the table below as a QA checklist (create a test order if needed).

Data objectWhat to checkWhy it matters
CustomersEmail/phone format, marketing consent fields, duplicatesPrevents double messaging and broken segmentation
OrdersOrder total, tax, discount, shipping, currencyKeeps revenue reporting and automation triggers accurate
Line itemsSKU, variant ID, quantity, refunds/returns behaviorAvoids inventory and attribution mismatches
FulfillmentStatus changes + timestamps, tracking numbers, carrier fieldsDrives customer notifications and post-purchase flows
CatalogProduct titles, handles, images, collections/tagsEnsures personalization and reporting match your storefront

3) Automation ideas for Analytics

  • UTM discipline: enforce UTM tagging so Google Analytics attribution remains comparable across channels.
  • Server-side events: use webhooks (when available) to improve reliability vs. browser-only tracking.
  • Consent handling: ensure analytics respects user consent (especially in EU/UK) to avoid data skew.
  • Product-level analysis: standardize SKU/product IDs so Google Analytics reporting aligns with your catalog.
  • QA dashboards: monitor conversion rate, AOV, and returning customer rate weekly for drift.

API sanity check (WooCommerce REST API)

If your integration UI says “connected” but data isn’t flowing, a quick API call helps confirm whether the store is accessible and returning the objects you expect.

# List the 5 most recent orders (REST)
curl -u ck_your_key:cs_your_secret \
  "https://example.com/wp-json/wc/v3/orders?per_page=5&orderby=date&order=desc"

Tip: keep tokens/keys in environment variables, and test in a staging store/site before rolling changes to production.

4) KPIs to monitor (so you catch problems early)

  • Sync freshness: how long it takes for a new order/customer event to appear in Google Analytics.
  • Error rate: failed syncs per day (and which object types fail most).
  • Duplicates: number of merged/duplicate contacts or orders created by mapping mistakes.
  • Revenue parity: weekly spot-check that WooCommerce totals match downstream reporting (especially after refunds).
  • Attribution sanity: confirm that key events (purchase, refund, subscription) are tracked consistently.

5) A simple 30-day optimization plan

  1. Week 1: connect + map fields, then validate with 5–10 real orders/customers.
  2. Week 2: enable 1–2 automations and measure baseline KPIs (conversion, AOV, repeat rate).
  3. Week 3: tighten segmentation/rules (exclude recent buyers, add VIP thresholds, handle edge cases).
  4. Week 4: document the setup, create an “owner” checklist, and set a recurring monthly audit.

Related integration guides

Common issues (and fast fixes)

Even “simple” integrations fail in predictable ways. Use this as a quick troubleshooting playbook for WooCommerce + Google Analytics.

  • Duplicate customers/orders: usually caused by running two connectors at once. Pick one source of truth and dedupe by email (customers) and order ID (orders).
  • Currency/timezone drift: confirm store timezone and reporting currency match what Google Analytics expects, especially if you sell internationally.
  • Missing permissions: if data is partially syncing, re-check API scopes (orders vs customers vs products) and re-authorize the app.
  • Webhooks not firing: look for blocked callbacks, disabled webhooks, or a stale token. If possible, test with a fresh order and watch for events.
  • Rate limits & delays: large imports or high order volume can queue syncs. Stagger imports, reduce lookback windows, and monitor retry queues.
  • Refund/return mismatch: clarify whether refunds create separate objects or adjust the original order record (finance teams should agree on the model).

Privacy & compliance notes (2025)

Integrations often touch personal data (email, phone, address). Keep this lightweight checklist in mind:

  • Least privilege: only grant the data scopes you actively use; remove unused apps quarterly.
  • Consent fields: treat marketing consent separately from transactional messaging (especially for SMS).
  • Data retention: define how long you keep customer event data, and who can export it.
  • Access review: restrict admin accounts and rotate keys/tokens if staff changes.

Suggested rollout plan

  1. Connect in staging (if possible): validate mapping on a small dataset.
  2. Import a short history window: start with 30–90 days unless you have a clear reason to import more.
  3. Run side-by-side QA: compare a handful of orders across systems (totals, taxes, shipping, refunds).
  4. Go live gradually: enable 1–2 automations first, then expand once you trust the data.

Change control (keep it maintainable)

  • One owner: assign a single owner for the integration (who approves mapping and workflow changes).
  • Log changes: track what you changed (fields, filters, timing) and why, so you can roll back quickly.
  • Monthly audit: re-check scopes, API tokens, and error logs—especially after major store/theme/app changes.

Sources


For marketing automation, see WooCommerce Mailchimp integration. For CRM + lead capture, check WooCommerce HubSpot integration.

If you’re unsure where to start, document one “happy path” order from checkout to delivery and make every automation/report depend on that single source of truth.

Analytics Platform Comparison

Compare key features across popular analytics solutions

FeatureGlew.ioLifetimelyLittledataTriple Whale
Attribution modelHow credit is assignedLast-touchFirst-touchGA4 enhancedMulti-touch
Server-side trackingBypasses ad blockersNoNoYesYes
Profit trackingTrue P&L visibilityYesYesNoYes
LTV analysisCustomer lifetime valueBasicAdvancedVia GA4Yes
Creative analyticsAd creative performanceNoNoNoYes
Free tierAvailable without paymentNoNoNoLimited

Data based on publicly available information as of February 2026. Features and pricing may vary.