Shopify Hydrogen

Full tracking and attribution for Shopify Hydrogen storefronts

Headless storefronts built on Hydrogen skip the theme and checkout scripts that standard analytics rely on, so pixels and attribution quietly break. BooleanMaths restores complete tracking with server-side events through our Shopify app plus a lightweight storefront pixel — set up in a couple of hours.

Works with Hydrogen, Oxygen and custom headless React storefronts. No re-platforming, no engineering sprint.

Basics

What is Shopify Hydrogen, and why do brands use it?

Shopify Hydrogen is Shopify's headless commerce framework, built on React and Remix. It lets a brand build a fully custom storefront that runs separately from Shopify's standard Liquid theme, while cart, checkout and the back office still run on Shopify. Hydrogen storefronts are usually deployed on Oxygen, Shopify's edge hosting for headless builds. Brands move to Hydrogen for speed, complete design control and a composable stack — here's what draws them.

  • Performance

    Fast by default

    React rendered at the edge on Oxygen means app-like page loads and stronger Core Web Vitals than most Liquid themes.

  • Performance

    Fast by default

    React rendered at the edge on Oxygen means app-like page loads and stronger Core Web Vitals than most Liquid themes.

  • Design

    Total design freedom

    The storefront is fully custom code, so layout and UX aren't boxed in by theme structure or Liquid templating.

  • Stack

    Composable by choice

    Bring your own CMS, search, reviews and personalisation, and wire them into one React front end.

  • Checkout

    Shopify checkout intact

    Cart, checkout and payments still run on Shopify, so you keep the conversion-tested checkout and admin.

  • Developers

    Built for dev teams

    Ships with the Storefront API, data hooks and starter components, so engineers build and ship faster.

  • SEO

    Crawlable and fast

    Server-side rendering delivers clean HTML and quick loads, which helps organic search and answer-engine visibility.

The problem

Why does tracking break on Shopify Hydrogen?

Standard Shopify analytics and most third-party pixels assume a Liquid theme and Shopify's built-in checkout scripts. A Hydrogen storefront is a separate React app that never loads those scripts, and checkout runs on a different Shopify-hosted domain. So browsing events, checkout events and the customer journey get split across domains — and the pixel that's meant to stitch them together never fires the way it does on a themed store.

Pixels don't auto-inject

Hydrogen doesn't load Shopify's theme scripts or the classic pixel snippet, so Meta and Google pixels that depend on them silently stop firing key events like purchase.

Checkout sits on another domain

Cart and checkout run on Shopify's checkout domain, not your Hydrogen domain. Client-side pixels lose the session and can't tie the purchase back to the ad click.

Journeys and cart tokens fragment

With no shared identifier across storefront and checkout, orders arrive with no source, first- and last-touch attribution collapse, and ROAS looks wrong in every ad platform.

Activate your Marketing Data with BooleanMaths

Background

Activate your Marketing Data with BooleanMaths

Background

The fix

How does BooleanMaths fix tracking on Hydrogen?

BooleanMaths captures events in two places at once. A server-side stream runs through our Shopify app, reading orders, checkout and customer events directly from Shopify's servers — so purchases are recorded even though checkout lives on another domain. A lightweight pixel in your Hydrogen storefront captures on-site browsing and carries the ad click IDs through to checkout. Together they rebuild the full journey and send clean, deduplicated conversions to Meta and Google via CAPI.

Server-side events via the Shopify app

Our app subscribes to Shopify's order and checkout webhooks server-side, so every purchase is recorded reliably — with no dependence on browser scripts that Hydrogen never loads.

A lightweight pixel in your storefront

A small snippet — or a Shopify Web Pixel — drops into your Hydrogen app to capture page, product and add-to-cart events and carry click IDs from the ad through to the order.

Deduplicated CAPI to Meta and Google

Server and browser events are matched and deduplicated, then sent through the Conversion API with high event-match quality, so ad platforms optimise on accurate data again.

Setup

How long does setup take?

Most Hydrogen stores are fully live in a couple of hours. Install the app, drop in the pixel, connect your ad accounts — no re-platforming and no engineering sprint.

Step 1

Install the Shopify app

Add BooleanMaths to your Shopify store and grant read access to orders and checkout. Server-side event capture starts straight away.

Step 2

Add the storefront pixel

Drop our lightweight pixel or Shopify Web Pixel into your Hydrogen app and connect your Meta and Google ad accounts. Minutes, and no theme required.

Step 3

Verify and go live

We validate event-match quality and backfill recent orders, so attribution and CAPI are accurate from day one. Live in a couple of hours.

Benefits

What do you get with BooleanMaths on Hydrogen?

Accurate ROAS again

Every order gets a source, so blended and platform ROAS reflect reality instead of a pile of unattributed sales.

Higher event-match quality

Server-side CAPI with clean identifiers lifts match quality, giving Meta and Google stronger signal to optimise on.

No lost purchases

Checkout events are read server-side, so cross-domain checkout no longer means missing conversions.

Full customer journeys

First-touch, last-touch and multi-touch paths are rebuilt across the storefront and checkout.

Keep your Hydrogen build

No re-platforming, no theme and no engineering sprint — the fix layers onto the stack you already run.

SKU-level P&L and CM2

See true contribution margin per product and per channel, not just top-line revenue.

FAQ

Shopify Hydrogen tracking: FAQs

What is Shopify Hydrogen?

Shopify Hydrogen is Shopify's headless commerce framework, built on React and Remix. It lets brands build a fully custom storefront while Shopify still handles cart, checkout and the back office. Hydrogen sites are usually hosted on Shopify's Oxygen platform.

Does BooleanMaths work with headless and Oxygen storefronts?

Yes. BooleanMaths works with any headless Shopify build — Hydrogen on Oxygen, or custom React and Next.js storefronts on the Storefront API.

Do I need to change my Hydrogen code?

Only a lightweight pixel snippet, or a Shopify Web Pixel. The heavy lifting runs server-side through our Shopify app, so there's no deep code change and no re-platforming.

Will this fix my Meta and Google pixel firing?

Yes. Conversions are sent server-side via CAPI and deduplicated with the browser pixel, so events register even though Hydrogen doesn't load the classic theme scripts. Event-match quality improves as a result.

How long does setup take?

A couple of hours for a full setup in most cases — install the app, add the pixel, connect your ad accounts, and verify.

Does it work alongside Shopify checkout?

Yes. Checkout stays on Shopify. We read checkout and order events server-side, so nothing about your checkout flow changes.

Activate your Marketing Data with BooleanMaths

Background