Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

WooCommerce Google Analytics Pro

Overview

↑ Back to top

WooCommerce Google Analytics Pro sends store events such as purchases, refunds, and product views to Google Analytics 4 (GA4). It supports the WooCommerce Cart and Checkout blocks. Compare the free and Pro integrations if you need help choosing one.

Before you start

↑ Back to top

Install the extension using the WooCommerce.com extension installation instructions. You need a Google Analytics account and access to a GA4 property. To let the extension create or reuse a web stream and API secret, connect an account with edit access to the property.

Set up Google Analytics Pro

↑ Back to top

Connect your GA4 property, then check that the store sends events to the web stream you expect.

Prepare your Google account

↑ Back to top

Follow Google’s GA4 setup instructions if you need a property for your store. Complete the connection in WooCommerce before adding another Google tag for the same purpose.

Use an existing GA4 property

Select the existing property that belongs to your store. Confirm that your Google account has edit access.

Replace a Universal Analytics setup

Universal Analytics has ended. Use GA4 for current tracking. If you used Universal Analytics previously, its historical data cannot be imported into GA4. Google’s migration guidance.

Create a new GA4 property

If you need a new property, create one in Google Analytics and return to WooCommerce to connect it.

Web stream and Measurement Protocol API secret

↑ Back to top

When you save an authenticated GA4 property, the extension looks for a web stream and Measurement Protocol API secret named WooCommerce Google Analytics Pro. If either is missing, it attempts to create it. You can check the stream in Google Analytics under Admin → Data streams. Use Google’s Measurement Protocol instructions if you need to locate or create an API secret. Keep the secret private.

Connect and configure the extension

↑ Back to top
  1. Go to WooCommerce → Settings → Integrations → Google Analytics Pro.
  2. Select Connect your Google account. Sign in with the account that has access to your store’s GA4 property and grant the requested permissions.
  3. Under Google Analytics 4 Property, select your property and save your changes. Check Enable Google Analytics tracking once connected.
  4. Decide whether to enable Track Administrators? or Track User ID for your setup. Leave Debug Mode off during normal operation.

Review event names

↑ Back to top

The settings show Recommended Events (GA4) and Custom Events (GA4). Use the event names shown in your current settings when building a report.

Recommended events

GA4 recommended events include view_item, add_to_cart, begin_checkout, purchase, and refund. Keep the recommended names if you want GA4 to recognize them in its standard ecommerce reports.

Custom events

The extension also sends events specific to WooCommerce, such as applying a coupon or posting a product review. Use custom dimensions and metrics when you need reporting on additional event parameters.

Reconnect or revoke access

↑ Back to top

If Google rejects the saved connection or your property is missing, select Re-authenticate with your Google account. Confirm you selected the account with edit access and save the property again.

Change the connected Google account

To disconnect the current account, use revoke authorization on the integration settings page. Connect the intended account and verify the selected property again before relying on the new connection.

Verify data in Google Analytics

↑ Back to top

Open the connected GA4 property and use Realtime to check incoming events. For troubleshooting, turn on Debug Mode in WooCommerce and reproduce the event on a test store. Check DebugView, then turn debugging off.

Build a funnel exploration

↑ Back to top

Use Funnel exploration in GA4 to define steps from your store’s events. For example, use view_item, add_to_cart, begin_checkout, and purchase.

Track WooCommerce Subscriptions

↑ Back to top

When WooCommerce Subscriptions is active, Google Analytics Pro adds subscription events to its event settings.

Subscription events

↑ Back to top
  • Activate Subscription records activate_subscription.
  • Renew Subscription records renew_subscription.
  • Suspend Subscription records suspend_subscription.
  • Reactivate Subscription records reactivate_subscription.
  • Cancel Subscription records cancel_subscription when the subscription is canceled.
  • Subscription Expiration records subscription_expiration.
  • Subscription Free Trial End records subscription_free_trial_end.
  • Subscription Pre-paid Term End records subscription_prepaid_term_end when the prepaid term of a canceled subscription ends.

Avoid duplicate site tracking

↑ Back to top

Google Analytics Pro includes site tracking and WooCommerce events. Check your theme, other analytics plugins, and Google Tag Manager for duplicate Google Analytics tags sending the same events to the same stream.

Replace the free integration

↑ Back to top

When switching from the free WooCommerce Google Analytics integration, disable its tracking after the Pro connection is set up. Verify that each test action appears once.

Replace legacy tracking scripts

↑ Back to top

If a theme or site plugin still contains custom Universal Analytics tracking, review it with your developer before switching that tracking to GA4.

Privacy and cookies

↑ Back to top

Review which analytics information your store collects and how customer consent changes the data you send.

Configure consent for analytics cookies

↑ Back to top

The extension integrates with the WP Consent API on the storefront. If you use a consent management plugin, check that it supports this API and verify behavior with consent granted and denied.

Review your store’s privacy settings

↑ Back to top

Check how the Google Analytics settings and any custom events affect the information you collect. Review Google Analytics privacy and data safeguards for its controls.

Check purchase and referral reporting

↑ Back to top

Use the current GA4 setup when updating an older tracking configuration.

GA4 is the current Google Analytics property type for store tracking.

For WooCommerce Bookings, purchase tracking follows the associated WooCommerce order. Confirming the booking alone does not trigger a purchase.

If a payment processor appears as a referral, review Google’s unwanted referral settings for your GA4 web stream.

Troubleshoot missing or duplicate events

↑ Back to top

Use an isolated test session to reproduce a known store action. Check the selected property and compare what the store sends with what Google Analytics receives.

Check order status and tracking settings

↑ Back to top

For purchases, check the order status and how the gateway reports payment. Filtering administrators, duplicate tags, and consent settings can change which events you see.

Review the connection and logs

↑ Back to top
  1. Confirm the correct Google account and GA4 property are connected. If the extension requests it, re-authenticate.
  2. Check whether another tag sends duplicate events to the same stream. Repeat the test after removing the duplicate tracking configuration.
  3. Enable Debug Mode briefly to reproduce the issue. If it persists, use the support link and share only the relevant log excerpt, with any credentials or personal information removed.

Developer customization

↑ Back to top

Track custom events with PHP

Use the extension’s tracking API to report a store action that the extension does not already track.

Questions and support

↑ Back to top

Questions and support

↑ Back to top

Something missing from this documentation? Still have questions and need assistance?

  • If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
  • If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.

Related Products

Advanced, flexible shipping. Define multiple shipping rates based on location, price, weight, shipping class...

Protect your eCommerce store from malicious and automated attacks by using reCaptcha/Cloudflare...

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.