Sourcemap Explorer
Stack · WordPress plugin

Google Analytics for WooCommerce

version 2.1.23· 100K+ active installsView on WordPress.org

About 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.

Tags
google analyticswoocommerce

Quick facts

Latest version2.1.23
Active installs100K+
Rating2.8 / 5 (119 reviews)
Requires WordPress6.8+
Requires PHP7.4+
Tested up to6.9.4
Last updated2026-04-15 12:36pm GMT
First released2013-11-25

Contributors

WooCommerce, Automattic, Claudio Sanches, Boro Sitnikovski, royho, laurendavissmith001, Chris Shultz, mmjones, Tomek

How Sourcemap Explorer detects Google Analytics for WooCommerce

WordPress plugins all load assets from a predictable path: /wp-content/plugins/<slug>/. Sourcemap Explorer enumerates every such URL on the rendered page (script tags and stylesheets) and pulls the version from the ?ver= cache-buster query parameter when WordPress emits one. The slug is then cross-referenced against the wordpress.org plugin directory to attach the human-readable name, author, install count, rating and changelog you see on this page.

  1. 1

    Find /wp-content/plugins/woocommerce-google-analytics-integration/ in the Network tab

    Open DevTools → Network → reload the page. Filter by "JS" or "CSS" and look for asset URLs starting with `/wp-content/plugins/woocommerce-google-analytics-integration/`. Each match confirms the plugin is loading on the page. Sourcemap Explorer enumerates every plugin path automatically and lists each one in the popup's Stack tab.

  2. 2

    Read the version from the ?ver= query string

    WordPress appends the plugin version as a cache-busting query parameter to its asset URLs (`?ver=2.1.23`). Sourcemap Explorer pulls this version directly. The version on this page (2.1.23) is the latest published on wp.org — the version on a real site may lag.

  3. 3

    Cross-reference with wp.org for human-readable metadata

    Once the plugin slug is identified, fetch `https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request[slug]=woocommerce-google-analytics-integration` to read the human-readable name, author, install count, rating and changelog. This page already does that for you.

Plugin ecosystem context

Extends WooCommerce, the dominant WordPress e-commerce engine. Plugins in this lane typically interact with the cart, checkout, payment or shipping pipelines, and ship JavaScript that runs alongside WooCommerce's own client-side stack.

Screenshots

Google Analytics Integration Settings.
Google Analytics Integration Settings.

Installation

  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.

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.

Changelog

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.

Keep reading on Sourcemap Explorer

Detected by Sourcemap Explorer

We enumerate every /wp-content/plugins/<slug>/ path on the page, and pull the version from the ?ver= query string when WordPress emits one.

Install free on Chrome