Description
This plugin provides the integration between Google Analytics and the WooCommerce plugin. You can link a referral to a purchase and add transaction information to your Google Analytics data. It supports Global Site Tag (GA4) and eCommerce event tracking.
Please visit the documentation page for additional information.
Contributions are welcome via the GitHub repository.
Installation
- Download the plugin file to your computer and unzip it
- Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory.
- Activate the plugin from the Plugins menu within the WordPress admin.
- Don’t forget to enable e-commerce tracking in your Google Analytics account: https://support.google.com/analytics/answer/1009612?hl=en
Or use the automatic installation wizard through your admin panel, just search for this plugin’s name.
FAQ
-
Where can I find the setting for this plugin?
-
This plugin will add the settings to the Integration tab, found in the WooCommerce Settings menu.
-
I don’t see the code on my site. Where is it?
-
We purposefully don’t track admin visits to the site. Log out of the site (or open a Google Chrome Incognito window) and check if the code is there for non-admins.
Also please make sure to enter your Google Analytics ID under WooCommerce Settings Integrations.
-
My code is there. Why is it still not tracking sales?
-
Duplicate Google Analytics code causes a conflict in tracking. Remove any other Google Analytics plugins or code from your site to avoid duplication and conflicts in tracking.
Reviews
Contributors & Developers
“Google Analytics for WooCommerce” is open source software. The following people have contributed to this plugin.
Contributors“Google Analytics for WooCommerce” has been translated into 14 locales. Thank you to the translators for their contributions.
Translate “Google Analytics for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.4.1 – 2026-08-25
- Fix – Purchase event no longer reports a false item discount in stores that enter prices inclusive of tax, and no longer drops coupon discounts for quantities above one; item price and discount are now per unit and tax-exclusive.
- Fix – Purchase event value now sums the item prices × quantity, excluding tax and shipping as GA4 expects, instead of the gross order total.
- Tweak – WordPress 7.1 compatibility.
- Update – Require WordPress 7.0+.
2.4.0 – 2026-08-06
- Dev – Run the PHP coding standards job when dependencies change.
- Dev – Update WPCS to 3.4.1 to pick up the fix for GHSA-3pwp-g2mj-5p3v.
- Update – Bump the minimum required WooCommerce version to 10.9 and the compatibility version to 11.0.
2.3.0 – 2026-06-25
- Update – Require WooCommerce 10.8+.

