Google Analytics for WooCommerce icon
Analytics & Tracking

Google Analytics for WooCommerce

Provides integration between Google Analytics and WooCommerce.

  • By WooCommerce
  • v2.4.4
  • Updated

Overview

Google Analytics for WooCommerce describes itself as: “Provides integration between Google Analytics and WooCommerce.”

It is active on 100,000+ WordPress sites and rated 2.8 out of 5 by 119 users on WordPress.org. Developers can extend it through 0 actions and 12 filters, listed below.

We haven't published a hands-on review of Google Analytics for WooCommerce yet. Want one, or need help with it? Send us a request.

How to install Google Analytics for WooCommerce

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Google Analytics for WooCommerce” and pick the one by WooCommerce.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install woocommerce-google-analytics-integration --activate

Requirements: WordPress 7.0+ · PHP 7.4+ · tested up to WordPress 7.1.4

Hooks & customisation

Google Analytics for WooCommerce 2.4.4 fires 0 actions and 12 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

woocommerce-google-analytics-integration — top hooks
// Filters the default gtag consent mode configuration.
apply_filters( 'woocommerce_ga_gtag_consent_modes', $consent_modes );

// Filter the order identifier sent to Google Analytics as `transaction_id`.
apply_filters( 'woocommerce_ga_order_id', $order->get_order_number(), $order );

// Filters the query parameters kept in the page URL reported to Google Analytics…
apply_filters( 'woocommerce_ga_order_page_allowed_url_params', $params, $endpoints );

// Filters the query parameters stripped from the page URL and referrer reported…
apply_filters( 'woocommerce_ga_redacted_url_params', $params );

// Filters whether the gtag snippet strips sensitive query parameters, such as or…
apply_filters( 'woocommerce_ga_url_redaction_enabled', true );

// Filter in woocommerce-google-analytics-integration.php
apply_filters( 'plugin_locale', get_locale(), 'woocommerce-google-analytics-integration' );

Browse all 12 hooks with examples →

Need Google Analytics for WooCommerce customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with WooCommerce. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Analytics & Tracking

See all →

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful…

5+ million installs 91 hooks

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow…

2+ million installs Reviewed 186 hooks
CookieYes icon

CookieYes

3,238

Google-certified CMP: cookie banner, cookie notice and cookie consent for GDPR/CCPA compliance, with cookie blocker, cookie scanner and consent log.

1+ million installs Reviewed 82 hooks

Publish your cookie banner or notice in minutes. Automatically scan cookies, and create policies to align with GDPR, CCPA, and…

1+ million installs 184 hooks