Headless and composable
Pertento for Shopify Hydrogen
A React storefront on Shopify, so the tag goes in the document head and variants survive Hydrogen’s client-side routing.
One script tag · 0.9 KB · no cookiesAll integrations
Hydrogen is a React framework, so Pertento installs the way it does in any React application: the tag in the document head, loaded before the first paint. Variants survive Hydrogen’s client-side navigation rather than being reapplied on each route change, which matters on a storefront where one visitor moves through a dozen product pages in a session. Where a change belongs in a loader rather than in the markup, the SDK runs server-side and shares assignment with the tag.
How it connects
- Render the tag in the document head, above analytics.
- Let assignment persist across route changes rather than re-running per navigation.
- Use the SDK inside loaders for anything decided before the response is built.
More in Headless and composable
All integrations