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.
How to install Google Analytics for WooCommerce
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Google Analytics for WooCommerce” and pick the one by WooCommerce.
- 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 --activateRequirements: 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.
// 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' );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.