In short. Connect Google Analytics for WooCommerce by entering the web stream measurement ID in its integration settings, saving changes, and testing enabled commerce tracking.
Definition: Google Analytics for WooCommerce is a plugin that sends store activity and ecommerce events to Google Analytics 4 (GA4). As of 17 October 2026, WooCommerce documents connection through a measurement ID beginning with
G-, entered under WooCommerce > Settings > Integration > Google Analytics.
Key facts
- Google's Measurement ID documentation defines the ID as the identifier for a web data stream, the website registered in Analytics.
- Google's WooCommerce setup guide requires the Google Analytics plugin to be installed separately from the store software.
- WooCommerce's plugin settings source specifies that purchase tracking requires a payment gateway that returns customers to the thank you/order received page after payment.
Where does the measurement ID go?
Google's WooCommerce setup guide describes installation through WordPress admin: open Plugins > Add New, search for Google Analytics for WooCommerce, and select Install Now. Under Installed Plugins, activate WooCommerce Google Analytics Integration. The guide also provides a Settings link beneath the plugin name.
Google's measurement ID instructions place the ID under Admin > Data collection and modification > Data streams. Select the Web tab and open the stream corresponding to the store. The ID appears in the first row of its details. Access requires the Editor role or above at property level.
WooCommerce's integration documentation gives this destination in WordPress admin:
WooCommerce > Settings > Integration > Google Analytics
Paste the store's measurement ID into Google Analytics Tracking ID and select Save Changes, as Google's setup guide describes. Google's example shows the expected format:
G-PSW1MY7HB4
This example illustrates the format; the configured value comes from the store's own web stream.
Which commerce settings are available?
WooCommerce's settings source defines these commerce checkboxes:
| Setting | Activity covered |
|---|---|
| Purchase Transactions | Purchases, subject to the payment gateway's return to the order received page. |
| Add to Cart Events | Product additions to the cart. |
| Remove from Cart Events | Product removals from the cart. |
| Product Impressions from Listing Pages | Product lists displayed to customers. |
| Product Clicks from Listing Pages | Product selections within lists. |
| Product Detail Views | Views of a product's full details. |
| Checkout Process Initiated | The start of checkout. |
These controls appear in the Event Tracking settings. The same source defines separate Display Advertising support and Track 404 (Not found) Errors checkboxes.
How is the connection checked?
WooCommerce's testing instructions use Google Tag Assistant. Enter the store URL in Tag Assistant and select Connect. Grant consent through the store's cookie banner, return to Tag Assistant, and select Continue. Select the Google tag or measurement ID and open Hits Sent.
Adding a product to the cart and starting checkout should produce corresponding activity in Hits Sent when tracking works. The same instructions exclude pageviews from logged-in administrators, so the pageview check uses a logged-out visit.
Related terms
FAQ
Which ID should I copy if several properties exist?
Google's measurement ID instructions provide a property selector. Select your store's property and its web data stream before copying the ID.
Can another Analytics installation interfere?
Yes. WooCommerce's plugin readme identifies duplicate Analytics code as a tracking conflict. Review other Analytics plugins and manually inserted code for duplication.
Sources
- WooCommerce, "Google Analytics for WooCommerce", undated
- Google, "Measurement ID", undated
- Google, "WooCommerce: Set up your Google tag", undated
- WooCommerce, "Google Analytics for WooCommerce: settings source", undated
- WooCommerce, "Google Analytics for WooCommerce: plugin readme", undated
Check how a page reads to answer engines. Open the GEO score analyzer