Skip to main content
Connect your store to Google Tag Manager (GTM) and Meta Pixel (Facebook Pixel) to track customer behaviour, measure ad performance, and build retargeting audiences.

What’s Tracked

storekit fires standard e-commerce events that GTM and Meta Pixel can capture:

Setup

  1. Go to Store Settings > Integrations/Marketing
  2. Enter your GTM Container ID (format: GTM-XXXXXXX)
  3. Enter your Meta Pixel ID (if using Facebook/Instagram ads)
  4. Click Save
Tags begin firing immediately after saving.

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.

Meta Pixel

Meta Pixel tracks customer actions for Facebook and Instagram ad optimisation.

Verifying Your Setup

After adding your Meta Pixel ID:
  1. Install the Meta Pixel Helper browser extension
  2. Visit your store
  3. Confirm the pixel fires on each page and event
Test your tags thoroughly after setup. Use GTM Preview mode and Meta Pixel Helper to verify all events fire correctly before running ad campaigns.