The embed must opt in
hemsy-embed.js calls /api/incrementality/init only when the script is explicitly opted in. Without that flag, the holdout never starts: no bucketing, no hiding, no cart tags.
Existing installs (including a typical Shopify homepage script) do not include this attribute. That is intentional. A store with incrementality off in the dashboard should not hit Hemsy on every new session.
Add one of these on the same page as the embed:
true, "true", or "1". Anything else (or omitting the flag) leaves incrementality off.
The Shopify theme app embed has no incrementality setting.
If you installed from the theme editor, add the
HemsyEmbedConfig snippet
above to your theme code (for example in theme.liquid), and the app embed’s
script picks it up.{ enabled: false } from init and will not hide CTAs or tag carts.
What happens when it is on
Both of these must be true:- The embed is opted in (
data-hemsy-incrementalityorHemsyEmbedConfig.incrementality). - Incrementality Mode is enabled on the store in the dashboard.
- The embed POSTs
/api/incrementality/initwith the store slug and a visitor id. - Hemsy assigns the visitor to treatment (90%) or control (10%). The assignment is stable for that visitor.
- Control visitors get a CSS hide on the selectors you saved in the dashboard (your Hemsy buttons, nav links, and any other CTAs).
- The Shopify Ajax cart is tagged with
hemsy_groupandhemsy_visitor_idso later orders can be bucketed.
sessionStorage for the rest of that tab. Later pages in the same tab do not call init again. The hide styles are re-applied from that cache on each page load.
Add at least one CSS selector before enabling the dashboard toggle. One
selector per line: IDs or class names of every Hemsy CTA on the storefront.
If the holdout group has nothing to hide, both groups see Hemsy and the test
measures nothing.
Dashboard
On Incrementality you can:- Enable or disable Incrementality Mode
- Edit the holdout CSS selectors
- Compare baseline vs Hemsy conversion, lift, and net new revenue over a date range