Skip to main content
Connect your store to Google Tag Manager (GTM) to track customer behaviour, measure conversions, and manage analytics tags.
Meta tracking is configured separately. See Meta Pixel and Conversions API.

What’s Tracked

storekit pushes standard e-commerce events to the GTM data layer:

Setup

Google Tag Manager is configured separately for each store.
  1. Go to Stores → your store → SettingsIntegrationsGoogle Tag Manager
  2. Enter your Google Tag Manager ID (format: GTM-XXXXXXX) and click Save
Repeat for each store you want tracked.

Use Cases

Google Tag Manager

GTM acts as a container for all your tracking tags. Once your GTM Container ID is added to storekit, you can manage all tags, triggers, and variables from the GTM dashboard without editing your store settings.

Verifying Your Setup

After adding your GTM Container ID:
  1. Install the GTM Preview browser extension
  2. Open your store in preview mode
  3. Verify that tags fire on page views, add to cart, and purchase events

Reconciling with Google Analytics

The purchase event storekit pushes to the GTM data layer carries two order identifiers: So a transaction ID in Google Analytics is the order id. Open that order by putting the value at the end of the order page URL (/orders/KhDx6jUFP) — searching for it in All Orders returns nothing, because that search box matches order codes only. To match a batch of Google Analytics transactions against your orders:
1

Open All Orders

In the sidebar, click Orders, then All Orders, and set the date range and filters you want to export.
2

Export the orders

Click Export, then choose Expanded. storekit emails the CSV to the address you are signed in with.
3

Match on Order id

Match the Google Analytics transaction ID against the CSV’s Order id column; the Order Code column next to it gives the code your team uses for the same order.
Expanded gives each product in an order its own row, so an order id repeats once per product. Compact summarises each order in a single row and omits the product columns; both formats include Order id and Order Code, so pick Compact if you only need order totals.
The ID column in AnalyticsAccountingAll Transactions is the payment provider’s reference for the charge, not the Google Analytics transaction ID. That report’s CSV export does contain the order id, in its Reference ID column — see Order and payment identifiers.
Test your tags thoroughly after setup. Use GTM Preview mode to verify that expected events fire before relying on them for reporting or campaigns.