Google Analytics for WooCommerce

描述

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.

屏幕截图

  • Google Analytics Integration Settings.

安装

  1. Download the plugin file to your computer and unzip it
  2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory.
  3. Activate the plugin from the Plugins menu within the WordPress admin.
  4. 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.

常见问题

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.

评价

2026 年 4 月 28 日 1 回复
Support advised how this works. No dash in WooCommerce, it all connects to Google Analytics, when ID inserted into Integration section. Thanks.
2025 年 6 月 10 日 1 回复
We installed this plugin to improve conversion tracking in GA4 – with disastrous results: since installation, no traffic has been recorded in Google Analytics 4 at all. We are using the Complianz cookie plugin, which previously worked flawlessly. But immediately after activating the GA for WooCommerce plugin, tracking completely stopped. Even after uninstalling the plugin, the issue remained. We had to delete the entire GA4 property and set it up from scratch just to get data flowing again – a major and unacceptable disruption for a live site. This plugin used to work well in the past, but it is now broken across all our client sites. It seems completely incompatible with standard consent solutions and GA4 at the moment. Unless a working update is released within the next few days, we will be removing this plugin from all our clients’ shops permanently. Conclusion: Until the issues are resolved – stay away! This plugin poses a serious risk to production environments.
2025 年 5 月 25 日 1 回复
Native Google Analytics gateway for Woocommerce. Works great when set up correctly.

ok

2025 年 5 月 16 日 1 回复
very good technical support, thanks
阅读所有118条评价

贡献者及开发者

「Google Analytics for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Google Analytics for WooCommerce」插件已被翻译至 14 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Google Analytics for WooCommerce」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.1.23 – 2026-04-15

  • Dev – Enable min-release-age supply-chain protection.
  • Dev – Override serialize-javascript to ^7.0.5 and ajv to ^8.18.0 to resolve npm security vulnerabilities.
  • Dev – Update npm dependencies and transitive overrides to resolve non-breaking security advisories.
  • Update – Require WooCommerce 10.6+.

2.1.22 – 2026-03-26

  • Dev – Add AGENTS.md and CLAUDE.md for coding agent guidelines.
  • Dev – Add Woo Deploy workflow for streamlined releases.
  • Dev – Add WooCommerce beta compatibility testing skill.
  • Dev – Add deploy workflow and release preparation via Woo Deploy.
  • Dev – Add npm scripts to run PHPUnit tests via wp-env for simpler local development.
  • Dev – Expand PHP unit test coverage for data formatting and configuration methods.
  • Update – Require WooCommerce 10.5+.

2.1.21 – 2026-02-10

  • Tweak – WC 10.5 compatibility.
  • Update – Require WooCommerce 10.4+.

See changelog for all versions.