Does a headless storefront break pixel tracking?

By the HonestTag team ยท Published October 27, 2026

A headless storefront does not stop orders being recorded. It takes away the pages where the ad click is. HonestTag's pixel runs on Shopify's checkout and order pages, but not on a storefront built with Hydrogen or another framework. That storefront is where a shopper lands from an ad, with the ad's click ID in its address. So HonestTag's pixel can fire on every checkout while none of those orders is tied to an ad. Both are true at once. Code on the storefront that records the click, and a cookie the checkout can read, puts the two halves back together.

Install HonestTag free and run the Mirror plan beside your current tracking. It sends no purchases or conversions to your ad platforms, so it cannot double-count a sale or change your current setup, and it shows which platform claims hold up against the new customers in your real orders. Free at any store size.

Install HonestTag free

What "headless" means

Shopify says "Headless commerce separates your storefront's frontend from its backend. You build the frontend, and Shopify's APIs handle the commerce underneath." You choose "the stack, framework, and hosting for your frontend," and Shopify says "Commerce capabilities include the cart, checkout, and international pricing" (Shopify: About headless commerce). Shopify's own toolkit for this is Hydrogen: "Hydrogen is Shopify's headless toolkit," and it does not include checkout UI "because checkout stays on Shopify" (Shopify: Hydrogen).

So a headless store has two parts. The storefront, the home page, collections and product pages, is your own site, built with Hydrogen or another framework. The checkout is still Shopify's.

Which pages a Shopify pixel runs on

Shopify says "Pixels automatically load on the Storefront, Checkout, Thank you page, and Order status page" (Shopify Help: Pixels overview). For apps, Shopify says a web pixel "is able to load in the shop's online store" (Shopify: About web pixels). HonestTag's pixel runs on Shopify's checkout and order pages, but not on a storefront built with Hydrogen or another framework. Checkout stays on Shopify, and that is where the pixel still runs. For how an app pixel differs from a custom pixel and what its sandbox allows, read Shopify custom pixel vs app pixel.

This is not only about HonestTag. Asked whether apps stop working when a store goes headless, a Shopify staff member answered: "The information you've read is correct. You'll need to hope that the app you want to use has an API that you can integrate with" (Shopify developer community, March 2026).

Why the click ID is on the landing page, not at checkout

An ad click can carry a click ID in the address of the page the shopper lands on. TikTok, for example, describes its click ID as "a data connection parameter appended to a landing page URL whenever a user clicks on an ad on TikTok" (TikTok Events API). The click ID arrives on that landing page. Whatever ties the order to the ad has to read it there and keep it until checkout.

A cookie the storefront and checkout share

A cookie is a small value a browser keeps for a website. A cookie set for a domain, like example.com, can be read on that domain and on its subdomains, like shop.example.com and checkout.example.com. MDN puts it this way: "Setting the domain makes the cookie available to that domain and all its subdomains" (MDN: Set-Cookie). A cookie on example.com cannot be read on an unrelated domain.

Shopify's Hydrogen consent guide, which Shopify says refers to "Hydrogen versions 2026-04 and earlier," says to "assign a subdomain for your storefront to checkout. For example, if your Hydrogen store is example.com, then assign checkout.example.com to checkout" (Shopify: Hydrogen consent).

Tie headless store clicks to orders. On every plan, HonestTag's Setup tab gives you a short script or Hydrogen component made for your store, so ad clicks on a headless storefront can be tied to the order.

Install HonestTag free

A month in counts

The numbers below are made up to show the arithmetic. They are not from a real store and not an estimate of what any store will see.

Before the storefront code, the pixel fired on all 400 checkouts and 0 orders were tied to an ad click. Both statements are true at once, because the pixel and the click were on different pages. With the code, 44 of the 50 ad-click orders are tied to their click. The order count is 400 either way.

Why tracking goes quiet on a headless store

One merchant asked whether separating the frontend and backend "(Next.js + Shopify)" affects how pixels work (Shopify Community, January 2026). These are the usual reasons tracking on such a store goes quiet.

The trade-offs

What HonestTag does

Shopify's pixel covers checkout. On a headless store, a short storefront script, or on Hydrogen a component, records the ad click, and the checkout reads the same visitor ID from a cookie on the domain the storefront and checkout share. In more detail:

The steps for adding the code are in Headless and Hydrogen stores.

Frequently asked questions

Will my Shopify app pixels work on a headless storefront?

On the checkout, yes: Shopify says pixels "automatically load" on Checkout, and checkout stays on Shopify. Shopify's pixel docs say an app web pixel "is able to load in the shop's online store." They do not say it loads on a storefront built with Hydrogen or another framework. HonestTag's pixel runs on checkout and order pages, and not on that storefront, so the ad click on the landing page has to come from code you add.

Will my order count change after I add the storefront code?

No. HonestTag receives every order from Shopify either way. The storefront code changes whether an order can be joined to the ad click that brought the shopper.

Why does my checkout need to be on a subdomain of my storefront's domain?

Because a cookie set for a domain can be read on that domain and its subdomains, and not on an unrelated domain. With the storefront on example.com and the checkout on checkout.example.com, the checkout can read the visitor ID the storefront saved.

Does HonestTag send anything before Shopify's Customer Privacy API allows it?

No. Nothing is sent and no cookie is set until Shopify's Customer Privacy API has loaded and allows both analytics and marketing for that shopper. When the shopper actively said yes, the code says so; when they are in a region where processing is allowed until they refuse, it says that instead, and HonestTag never reports it as a yes. In the EU, EEA, UK and Switzerland it waits for the shopper's own yes.

Tie headless store clicks to orders

On every plan, HonestTag's Setup tab gives you a short script or Hydrogen component made for your store, so ad clicks on a headless storefront can be tied to the order.

  • No risk to your setup. The Mirror plan sends no purchases or conversions to your ad platforms, so it cannot double-count a sale or change your current setup.
  • Claims against real orders. It shows what Google Ads, Meta, Microsoft Advertising and TikTok claim beside the new customers whose first recorded ad click or ad-tagged link was that platform, counted from your own orders.
  • Free at any store size. The Mirror plan stays free whatever your sales.

Install HonestTag free