Add Google Tag Manager
Install the Google Tag Manager app and enter your container ID to manage tracking tags without code changes.
Add your Google Tag Manager (GTM) container to every page of your store, so your marketing team can add and change tags (Google Ads, Meta, chat widgets, heat maps) in GTM without editing your theme.
Use it to:
- Load marketing and tracking tags from one place, without code changes in Zoey.
- Send orders to Google Ads or other tools from the Order Success page, using the order data Zoey adds to the
dataLayer. - Read who the visitor is (logged in, Customer Group, existing customer) in your tags.
Google Tag Manager or Google Analytics?For Google Analytics 4, you don't need GTM: use Connect Google Analytics with your
G-Measurement ID. If you also add a GA4 tag in GTM for the same property, visits and purchases can be counted twice.
Set Up Google Tag Manager
- In Google Tag Manager, create a Web container for your store and copy its container ID. It starts with
GTM-(for exampleGTM-AB12CD3). - In the Zoey Admin, click the Apps icon in the far-left bar to open My Apps.
- Find Google Tag Manager and click Manage. If it isn't listed, add the Google Tag Manager app first.
- Set Enable to Yes. The Container Public ID field appears once Enable is Yes.
- Paste the container ID into Container Public ID.
- Click Save at the top right.

- In Google Tag Manager, use Preview on your store's address to check your tags fire, then Submit and publish the container.
Settings
| Setting | What it does |
|---|---|
| Enable | Adds your container to every storefront page when set to Yes. |
| Container Public ID | Your GTM container ID, starting with GTM-. Zoey loads nothing until this is filled in. A Google Analytics ID (G-…) here doesn't work; see the FAQ below. |
Where the Container Loads
The app adds your container to every storefront page, including each checkout step and the Order Success page. It doesn't load in the Zoey Admin.
What Zoey Adds to the dataLayer
Zoey pushes these values to the dataLayer before your container loads, so your tags and triggers can use them as Data Layer Variables.
On every page:
| Key | What it holds |
|---|---|
visitorLoginState | Logged in or Logged out. |
visitorId | The Contact's ID, when they're logged in. |
visitorType | The visitor's Customer Group code (for example NOT LOGGED IN or your wholesale group). |
visitorExistingCustomer | Yes if the logged-in Contact has placed an order before, otherwise No. |
visitorLifetimeValue | The total of the logged-in Contact's past orders. |
On the Order Success page, Zoey also adds the order:
| Key | What it holds |
|---|---|
transactionId | The order number. When one checkout creates several orders (split orders), the numbers are joined with ` |
transactionTotal, transactionShipping, transactionTax | The order's grand total, shipping and tax, in your base currency. |
transactionCurrency | Your base currency code. |
transactionPaymentType | The payment method's name. |
transactionShippingMethod | The shipping carrier code. |
transactionPromoCode | The coupon code used, if any. |
transactionDate | The order date. |
transactionProducts | One entry per product, with name, sku, category, price and quantity. |
Only orders a shopper finishes on the storefront reach the Order Success page. Orders your team creates in the admin, quote conversions and API orders don't send this data. See Which Orders Reach Google Analytics.
FAQ
Google says my site loads a Google tag through gtm.js. What do I change?
Check Container Public ID in the Google Tag Manager app. If it holds a Google Analytics ID (starting with G-), Google sees an Analytics tag loaded the GTM way and emails you about it. Replace it with your GTM- container ID, or set Enable to No if you don't use GTM. Put your G- ID in Connect Google Analytics instead.
My tag fires in GTM Preview, but the chat widget or pixel doesn't show. Why?
Many vendors give one install code for pasting into a website and a different one for Google Tag Manager. If you pasted the website code into a GTM tag, ask the vendor for their GTM version and use that. Zoey doesn't block third-party scripts loaded through your container.
Ask Zoey AIAsk, for example: "How do I send the order total to Google Ads after checkout?" or "Why did Google email me about gtm.js on my store?"
Save UTM values and the Google click ID on each web order with Admin Only Order Attributes and the Zoey API.
Related articles
Updated 11 days ago
