Connect Google Analytics

Turn on the Google Analytics app and enter your Google Analytics ID so Zoey sends store traffic and sales to Google Analytics.

❗️

Google Analytics Code

Please do not use the code that Google Analytics tells you to copy and paste. Zoey is pre-configured with this already installed and simply needs your ID. Follow the tutorial below to set it up.

Enabling Google Analytics

Zoey supports Google Analytics 4 (GA4). Google retired Universal Analytics in 2024, so new setups use a GA4 Measurement ID, which starts with G-.

  1. In Google Analytics, copy your web stream's Measurement ID (for example G-XXXXXXXXXX).
  2. In the Zoey Admin, click the Apps icon in the far-left bar to open My Apps.
  3. Find Google Analytics Integration and click Manage. If it isn't listed, add the Google Analytics app first.
  4. Set Enable to Yes.
  5. Paste the Measurement ID into Account Number.
  6. Set Analytics Version to Google Analytics Version 4 (GA4 gtag.js).
  7. Click Save.
Google Analytics Integration settings with Enable set to Yes, a G- Account Number and Analytics Version set to GA4

Settings

SettingWhat it does
EnableTurns Google Analytics tracking on for your storefront.
Account NumberYour GA4 Measurement ID (G-…). An older UA-… ID only works with the Universal Analytics versions, which Google no longer collects data for.
Enable IP anonymizationAsks Google to anonymize visitors' IP addresses.
Analytics VersionChoose Google Analytics Version 4 (GA4 gtag.js). Classic Analytics and Universal Analytics are older Google versions.
Enable Cross Domain TrackingAccepts visitors linked in from your other domains as the same session.
Enable Enhanced Ecommerce TrackingFor Universal Analytics only. With GA4, Zoey sends ecommerce events such as product views and purchases automatically.
Track Admin Created OrdersWhen Yes, orders your team creates in the admin order editor are sent to GA4 from the staff member's browser when the order is saved. They count under the staff member's visit, not the customer's. See Which Orders Reach Google Analytics.
Enable Debug ModeSends events to Google's DebugView so you can check tracking. See Debugging Google Analytics.

Which Orders Reach Google Analytics

Zoey sends the GA4 purchase event from the shopper's browser when the order confirmation (Order Success) page loads. It's client-side, not sent from Zoey's server. An order only reaches GA4 when a shopper finishes checkout on the storefront, lands on the confirmation page, and their browser doesn't block Google Analytics.

So GA4 usually shows fewer purchases than Zoey. These orders don't send a purchase event:

OrderWhy it's missing from GA4
Created by your team in the adminNo shopper loads the confirmation page. If Track Admin Created Orders is Yes, the purchase is sent from the staff member's browser instead, and counts under that staff visit.
Converted from a quote or draft by your teamNo shopper loads the confirmation page.
Created through the API or an importNo shopper loads the confirmation page.
Paid on an outside payment page (for example PayU or PayPal) where the shopper doesn't come back to your storeThe shopper never returns to the confirmation page.
Canceled before paymentNo purchase is recorded, which is correct.
Placed by a shopper who blocks Google Analytics (ad blocker or declined cookie consent)The browser doesn't send the event.
Placed by a shopper who closes or leaves the confirmation page before it finishes loadingThe event never gets sent.

For revenue and order counts, use Zoey's Orders report, which includes every order. Use GA4 for traffic and conversion trends.

Send missing purchases to GA4 from your server

Missing purchases can be sent to GA4 afterwards with Google's Measurement Protocol (server-to-server). It needs an API secret from your GA4 property (Admin > Data Streams > Measurement Protocol API secrets).

When a shopper places an order on your storefront, Zoey saves their GA4 client ID and session ID (read from the shopper's _ga cookies) on the order. Your developer reads them from the Zoey REST API as ga_client_id and ga_session_id on Orders Get and Get All, and sends them with the purchase so it keeps the shopper's original traffic source:

Measurement Protocol fieldZoey order field
client_idga_client_id
params.session_idga_session_id
params.transaction_idincrement_id (the order number)
  • GA4 removes duplicate purchases with the same transaction_id, so sending an order the browser already reported doesn't count it twice.
  • Google only accepts events up to 72 hours old.
  • The two fields are empty for orders created in the admin, through the API or an import, for orders placed before December 2026, and when the shopper's browser blocked Google Analytics.
💬

Ask Zoey AI

Ask, for example: "Why does Google Analytics show fewer orders than Zoey?", "Which of last week's orders were created in the admin?" or "How do I send a missing order to GA4 with its session ID?"

❗️

Maintenance Mode

A known limitation with Zoey is that Google Analytics will not track visitors when your site is in maintenance mode.

FAQ

GA4 shows products or orders I never created. Where do they come from?

Your Measurement ID is sending data from another website, often a test or development copy of your store. In GA4, open Explore, filter by the unknown Item name and add the Hostname dimension. Any hostname that isn't your store's domain is the source. Remove your Measurement ID from that site, and add a filter in GA4 (or a hostname condition in your reports) to leave out those hostnames. If the hostname is a Zoey address you don't recognize, create a support ticket with it.

GA4 shows thousands of one-page visits to filtered category pages. Is that real traffic?

Usually not. Visits that land straight on category links with many filters and zoeyfiltertraffic=1 in the address, with no referrer, 0 seconds on the page and a new visitor every time, are automated crawlers. Zoey already challenges this traffic before it reaches your store. If it keeps showing up, create a support ticket with a few example addresses, and Zoey Support can add a stricter rule for your domain.

Google emailed me about a Google tag loaded through gtm.js. What do I do?

Your G- Measurement ID is probably in the Google Tag Manager app's Container Public ID. Move it here (Account Number) and put your GTM- container ID in Google Tag Manager, or turn that app off. See Add Google Tag Manager.

Debugging Google Analytics

Google will allow you to see events in realtime using their DebugView. More info on how to use Google's DebugView can be found here

For data to show up in DebugView, set Enable Debug Mode to Yes in the Google Analytics Integration settings and click Save. Set it back to No when you're done testing.

Once enabled data should show up as its being logged with a slight delay.


Did this page help you?