Google Analytics for WooCommerce

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.

Screenshots

  • Google Analytics Integration Settings.

Installation

  1. Download the plugin file to your computer and unzip it
  2. Using an FTP programme, 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.

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

12 March 2024
This plugin is a lifesaver! It delivers on its promises, significantly reducing manual coding tasks. While some versions might be a bit rough around the edges, the support team is very quick, forthcoming and competent!
9 March 2024 1 reply
Since the update to version 2.0 it does not work and does not track; it is not recommended to update the plugin or use it in those versions, as you will not be able to see the tracking of your web statistics.
2 February 2024 1 reply
does not work, it sets my GA4 traffic to for 2 days. It even disabled sitekit outside of woocommerce! Also it slowed down both wp-admin and website heavily! All problems I had have been solved when I deactivated and deleted this plugin
Read all 100 reviews

Contributors and 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 12 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.

Change Log

2.0.3 – 2024-03-13

  • Tweak – WC 8.7 compatibility.
  • Tweak – WP 6.5 compatibility.

2.0.2 – 2024-03-12

  • Dev – Add E2E testing to track events across all page types.
  • Fix – Add to cart & select content events for All Products Block.
  • Fix – Get correct variation data when formatting product.
  • Fix – Handle AJAX add to cart for simple products.
  • Fix – Purchase price format.
  • Fix – Track purchase transaction ID.
  • Fix – Typo with undefined variable.

2.0.1 – 2024-03-07

  • Fix – Adding variable product attributes.
  • Fix – Resolve Google Analytics not loading if gtag already exists on the window object.
  • Tweak – Update Contributors list.
  • Tweak – Update assets and readme for 2.0.

See changelog for all versions.