Skip to content
New: GA4 dashboards, server-side conversions to every ad platform, Consent Mode v2 generation, and publish approvals.See what shipped

Documentation

Setup, platform installs, monitoring, and the API. Written to be followed, not skimmed.

Install on Shopify

Shopify needs two pieces:

  1. Theme code — the GTM snippet in theme.liquid
  2. Customer Events Pixel — for checkout events that fire on Shopify's checkout subdomain

Skip the Customer Events Pixel only if you don't need purchase / checkout tracking.

Step 1 — Paste GTM into theme.liquid

  1. In Shopify Admin, go to Online Store → Themes
  2. Find your active theme → Actions → Edit code
  3. Under Layout, open theme.liquid
  4. Find the <head> tag (usually near the top)
  5. Paste the GTM head snippet (shown in the wizard's Shopify Install tab) immediately after <head>
  6. Find the <body> tag
  7. Paste the GTM noscript snippet immediately after <body>
  8. Click Save

Step 2 — Add the Customer Events Pixel

Shopify's checkout runs on a separate domain (checkout.shopify.com) where theme code doesn't execute. To fire add_to_cart,purchase, and similar events from the checkout, you need a Customer Events Pixel.

  1. In Shopify Admin, go to Settings → Customer events
  2. Click Add custom pixel
  3. Give it a name like "TagEasy DataLayer Pixel"
  4. Paste the JS shown in the wizard's Shopify Install tab → Step 3 card
  5. Click Save, then Connect when prompted
  6. Under Customer privacy, set the permissions appropriate to your jurisdiction

That pixel is a complete, standardized data layer. It listens to Shopify's storefront and checkout events — page_viewed, product_viewed, collection_viewed, search_submitted, product_added_to_cart, cart_viewed, checkout_started, payment_info_submitted, and checkout_completed — and pushes the matching GA4-spec dataLayer events (view_item, add_to_cart, begin_checkout, purchase, and more), each with full item detail (variant, brand, category), so GTM picks them up.

Step 3 — Verify with GTM Preview

  1. In GTM, click Preview (top-right)
  2. Enter your storefront URL
  3. Walk through the buyer journey: view product → add to cart → checkout → completed purchase
  4. Each step should fire the corresponding tag in GTM's Debug panel

Pre-built event templates for Shopify

These are already provisioned for you when you pick "e-commerce funnel" in the wizard:

  • shopify:ga4:view_item
  • shopify:ga4:add_to_cart
  • shopify:ga4:begin_checkout
  • shopify:ga4:purchase (requires the Customer Events Pixel)

Server-side purchases from orders

The storefront pixel only sees purchases a shopper's consent choice, ad blocker or browser lets through. The TagEasy app also subscribes to Shopify's orders/paid webhook, so every paid order becomes a purchase event for your server-side destinations (Meta Conversions API, TikTok Events API, Pinterest, Snap, GA4 Measurement Protocol or a webhook). Nothing to install: connect a destination under Server on the website page and orders start flowing.

  • Each order is sent once. Shopify retries deliveries, and TagEasy deduplicates on the order id.
  • The event id is shopify-order-<id>. A browser tag that sends the same id deduplicates at the vendor; Shopify's own sales-channel pixels use their own ids and will double count if you run both.
  • Email and phone are hashed before they leave TagEasy; test orders are forwarded but excluded from the figures on the app's Home page.

Google Ads conversions from orders

Add a Google Ads offline conversions destination under Server and every paid order is uploaded to the conversion action you pick. Google attributes an upload through the click id the shopper arrived with: the order webhook's landing_site is the first page of that session, and TagEasy lifts gclid, gbraid or wbraid from its query string into the purchase. Nothing in the storefront pixel can do this for you — it is sandboxed — so keep your ads' final URLs free of redirects that drop the parameter, and make sure the Conversion Linker (or Shopify's own Google channel) is not rewriting it. Orders without a click id (a shopper who clicked days earlier on another device, or came back directly) are uploaded with the hashed email and phone instead, which only counts when the conversion action has enhanced conversions for leads enabled.

  • The upload uses the conversion time from processed_at and the order id as orderId, so a replay never double counts.
  • Clicks can take a few hours to become uploadable; a CLICK_NOT_FOUND answer is retried automatically.
  • In the browser, turn on Enhanced conversions on the event's Google Ads destination to push a User-Provided Data variable fed from user_data.* on the dataLayer.

Common gotchas

  • Theme app extensions — Some themes use app blocks for header/footer code. If theme.liquid doesn't take, look for an app extension and add the snippet there.
  • Online Store 2.0 — fully supported; same install path.
  • Shopify Plus checkout extensibility — uses the same Customer Events Pixel API. No additional config.
  • Headless storefront — skip the theme.liquid step; install GTM directly in your top-level layout. The Customer Events Pixel still applies if you use Shopify checkout.