Google Analytics 4 for Ecommerce: Setup, Events and Reports

Short answer: set up Google Analytics 4 once, through your platform's own connection, then check that the ecommerce events Google documents arrive: view_item, add_to_cart, begin_checkout and purchase. On Shopify that's the Google & YouTube app; on Wix it's pasting your measurement ID into Marketing Integrations; on Squarespace it's the External API keys panel; on WooCommerce it's the free Google Analytics for WooCommerce extension. Then read the Monetization reports, tag your campaign links with UTM parameters and decide how you handle visitor consent. We haven't run GA4 on a store for this guide.

On this page
  1. What you need first
  2. Setup by platform
  3. The ecommerce events Google documents
  4. The reports to read
  5. Tag your campaign links
  6. Consent and privacy
  7. Connecting the rest of the picture
  8. How we checked

Where this comes from. Google Analytics Help and Google’s developer documentation for the events and reports, and each platform’s own help centre for the setup steps. Page updated November 22, 2026. Google’s pages carry no date, so we log them by read date. Our checklist and its order are suggestions. We haven’t installed GA4 on a store for this guide and we quote no benchmark conversion rates.

What you need first

GA4 works from a data stream, which Google describes as a website registered within Google Analytics. Each web stream has a measurement ID: a unique identifier that starts with G- followed by numbers and letters. Google’s help says you find it under Admin, then Data collection and modification, then Data streams, then the Web tab, and the stream’s details. After you add a web stream, Google’s help says you get a Google tag that creates a connection between your website and Google Analytics.

So the steps are always: create a property and a web data stream in Google Analytics, then give the platform either the measurement ID or access to the account. Statistics can take up to 24 hours to appear, per Squarespace’s help, so don’t judge the first day.

Setup by platform

Platform How it connects What the help says
Shopify The Google & YouTube sales channel Install the app and follow Google’s steps; Google calls connecting an existing web stream the recommended option
Wix Marketing Integrations, Google Tag Paste the measurement ID; needs a Premium site and a connected domain
Squarespace Developer tools, External API keys Enter the Google Analytics account number; measurement IDs start with G-
WooCommerce The free Google Analytics for WooCommerce extension WooCommerce, Settings, Integration, Google Analytics

Shopify

Shopify’s help says to install the Google & YouTube sales channel and follow Google’s instructions to set up the Google tag; you create a web data stream in GA4 and note the tag ID, and Google Merchant Center isn’t required. Google’s own page for Shopify calls connecting your Google Analytics web stream through the app the recommended option, done from the app’s overview by choosing your property, then Connect and Confirm. It also describes a manual tag option under the app’s Settings. Shopify’s help says certain ecommerce events are tracked automatically without naming them, and warns that Google Analytics can’t track events until you deactivate private mode on the store. Google’s page says viewing a collection triggers a view_item_list event, and that disconnecting would stop purchase events and other data.

Wix

Wix’s help says you need a Premium site and a connected domain to connect GA with your measurement ID. Go to Marketing Integrations in your dashboard, click Connect under Google Tag, and paste the measurement ID, with no extra spaces. Wix has merged its separate tools into one Google Tag and says you can use the ID you have whether it starts with G-, AW- or GT-. For ecommerce, Wix’s event-tracking page lists the events it sends to Google Analytics, including view_item, add_to_cart, begin_checkout and purchase, with Wix Stores among the apps that send them. That page names no plan requirement.

Squarespace

Squarespace’s help says to open the Developer tools panel, go to External API keys, and enter your measurement ID in the field labelled Google Analytics account number. It says statistics can take up to 24 hours to appear. If you track ecommerce conversions, Squarespace says it sends, for every order, the city, region and country, order ID, product name, purchase total including shipping, SKU and store name. The page names no GA4 event such as add_to_cart, so don’t assume you’ll see a full funnel.

WooCommerce

WooCommerce’s documentation describes a free Google Analytics for WooCommerce extension, set under WooCommerce, Settings, Integration, Google Analytics. Its options include tracking purchases on your site (which needs a payment gateway that redirects to the thank-you page), tracking when customers add a product to their cart and when they begin checkout. It says it works with the WP Consent API and has no cookie banner of its own. Google’s Site Kit plugin, which WordPress.org says is free and open source, is Google’s official WordPress plugin, but its pages don’t describe ecommerce event tracking, so check what it adds before relying on it for orders.

The ecommerce events Google documents

Google’s developer guide for GA4 ecommerce lists these events. The names are Google’s:

Event When to send it, per Google
view_item_list When a user is presented with a list of results
view_item To measure how many times item details are viewed
add_to_cart When an item is added to a shopping cart
begin_checkout The first step in a checkout process
add_payment_info When a user submits their payment information
add_shipping_info When a user adds shipping information
purchase A purchase, with one or more items
refund A refund, with the transaction_id

For purchase, Google’s events reference says transaction_id and items are always required, and value and currency go together: currency is needed whenever value is set, as a three-letter code. value is the sum of price times quantity, excluding shipping and tax. Each item needs an item_id or item_name. If your platform handles this for you, you don’t write any of it, but you’ll know what to check when a number looks wrong.

Check it yourself. Our suggestion: after you connect, place a test order and see whether a purchase appears in your reports, and compare the order count with your platform’s own orders. If the two differ, start with the platform’s help for the connection you used.

The reports to read

Google’s help describes the Monetization reports, found under Reports, then Life cycle, then Monetization (menu labels have changed over time, so look for the Monetization section):

  • Ecommerce purchases: a pre-made detail report that shows information about the products or services you sell.
  • Purchase journey: shows how many users drop off between each step in your purchase funnel.
  • Checkout journey: shows the number and percentage of users who began checkout.
  • Monetization overview: summarizes the Ecommerce purchases, Purchase journey and Publisher ads reports.

For a small store, we’d look at three things weekly: where traffic comes from, which products are viewed and bought, and where the purchase journey loses people. See conversion rate optimization for what to do about the drop-offs. Google also applies data thresholds to prevent identifying individual users, and says retention for event data can be set to 2 months or 14 months, with longer options marked for Analytics 360 only, so set it before you need history.

GA4 reads UTM parameters on the destination URLs of your campaigns. Google’s help says to always use utm_source (the advertiser, site or publication sending traffic), utm_medium (such as cpc, banner or email newsletter) and utm_campaign (the individual campaign name). utm_term and utm_content are optional. Google’s help also warns that Analytics is case sensitive, so utm_source=google and utm_source=Google are different. A simple rule for a small store, ours: lowercase everything and keep a short list of the names you use.

Google describes consent mode as letting you communicate your users’ cookie or app identifier consent status to Google, and notes there may be regional behavioral differences for areas like the EEA, Switzerland and the UK. We don’t explain how to configure it, and we don’t promise what it does to your numbers.

On the platform side, Shopify’s customer privacy settings can reduce analytics data in the regions where you show a cookie banner, which Shopify says can appear as lower session counts and conversion rates. Shopify says third-party tools may need a third-party banner or custom logic to honor consent. Squarespace says Google manages consent mode and that its consent support applies to sites using Squarespace’s cookie banner. If you sell to the EU or UK, ask a privacy professional. See also our email guide for the rules on messaging.

Connecting the rest of the picture

GA4 is one of three data sources a store should look at. The platform’s own reports have the real order counts, Google Search Console shows what people searched, and ad platforms show spend. For Shopping ads see our Google Shopping guide, and for what to do with the findings see ecommerce SEO and conversion rate optimization.

How we checked

We read Google Analytics Help pages on data streams, ecommerce events, reports, UTM parameters and consent mode, Google’s developer documentation, and the help centres of Shopify, Wix and Squarespace and WooCommerce’s documentation, on November 22, 2026. Google’s pages show no update date. We didn’t find a Shopify page that lists which events it tracks, or a Squarespace statement of GA4 events, so we don’t claim them. If something here is out of date, tell us and we’ll correct it.

Frequently asked questions

What is a Google Analytics 4 measurement ID?

Google describes it as a unique identifier for a web data stream. It starts with G- followed by numbers and letters. You find it under Admin, Data collection and modification, Data streams, then the web stream's details.

How do I add Google Analytics 4 to Shopify?

Shopify's help says to install the Google & YouTube sales channel and follow Google's steps to connect your Google Analytics web stream. Google calls connecting an existing web stream through the app the recommended option. Google Merchant Center isn't required for the analytics connection.

Does Squarespace send GA4 ecommerce events?

Squarespace's help says that if you track ecommerce conversions in Google Analytics it sends data for every order, such as order ID, product name, purchase total and SKU. Its help doesn't name GA4 events such as add_to_cart, so we don't claim it sends them.

Which GA4 events matter for an online store?

Google's ecommerce guide documents view_item_list, view_item, add_to_cart, begin_checkout, add_payment_info, add_shipping_info, purchase and refund. The purchase event needs a transaction_id and items, and value and currency go together.

Does consent affect my numbers?

It can. Shopify's help says cookie banners in configured regions might reduce data available for analytics and can show as decreased session counts and conversion rates. Google describes consent mode as a way to communicate your users' cookie consent status to Google.