Developers · Docs
From npm i to attributed revenue, in an afternoon.
No tag managers, no checkout extensions to babysit. Install one package, add one webhook handler, and let Headless Builds handle identity, the cross-domain handoff, and multi-touch credit.
Install in seconds.
The SDK is tiny, typed, and framework-aware. Pick your adapter and the right defaults come along for the ride.
$ npm i @headlessbuilds/shopify added 1 package in 0.8s → next: connect a store at headlessbuilds.comFour steps to your first stitched order.
- 1
Install the SDK
Add @headlessbuilds/shopify to your storefront and import the collector.
- 2
Connect your store
Authorize Headless Builds with a Shopify access token — no theme edits.
- 3
Add the webhook
Forward orders/create to hb.attribute() in one resource route.
- 4
Watch it stitch
Open your dashboard and see touches resolve into attributed revenue.
Guides & references
Quickstart
Install, connect a store, and see your first stitched order.
Hydrogen adapter
Wire touch capture and order stitching into a Hydrogen storefront.
Next.js adapter
Use middleware and a route handler to attribute a Next.js store.
Attribution models
Understand last-touch, linear, time-decay, and data-driven credit.
Warehouse sync
Stream attributed revenue into your own data warehouse.
Webhooks & API
The REST surface and the events you can subscribe to.
Ready to instrument your store?
Spin up an account, grab your key, and ship attribution your finance team will actually believe.