
From the conversion glossary
Concepts referenced in this article, defined.

Concepts referenced in this article, defined.
Run rigorous A/B tests and personalize every visit on Shopify or any storefront โ no engineers required.
Headless commerce decouples your storefront from your commerce backend, giving developers full control over frontend performance. That speed advantage should translate into better conversion rates โ but only if your CRO practice keeps pace with the new technical environment. A/B testing and personalization work differently in headless, and brands that assume their existing CRO tools will "just work" often discover otherwise after launch.
Traditional ecommerce platforms (Shopify, Magento, WooCommerce) give you a frontend and backend bundled together. Templates are rendered server-side, and customization lives within the platform's theme system.
Headless commerce breaks that bundle:
The two layers communicate through APIs. The frontend developer has complete control over HTML, CSS, JavaScript, and rendering strategy.
Why brands go headless:
The trade-off: Headless implementations are technically complex, expensive to build, and require ongoing developer resources. They make sense for brands doing โน50 crore+ annually with a dedicated engineering team, or brands where the standard platform's speed limitations are measurably hurting revenue.
This is where many brands get blindsided. They invest in a headless rebuild for speed, launch successfully, and then find their CRO tools misbehaving.
Legacy A/B testing tools work by fetching a base page, running JavaScript to manipulate the DOM, and serving the modified version to a portion of visitors. This approach was designed for server-rendered pages.
Headless frontends (React, Vue, Next.js) work differently:
Result: test variants flicker, load incorrectly, or don't render at all.
Next.js and similar frameworks often pre-render pages on the server (SSR) or at build time (SSG). Client-side testing tools run after the HTML arrives in the browser. This timing mismatch means the test variant loads after the original content has already been rendered โ causing a visible "flash" as the content swaps.
This is not just a user experience problem. It contaminates your test data: visitors who saw the flash are exposed to both control and variant, making statistical results unreliable.
In a headless setup, product data, prices, and content often come from an API call at render time. A visual editor that lets you "click and change text" on a DOM element will not work for API-driven content โ the text will be overwritten the next time the component fetches from the API.
Edge experimentation runs A/B test assignment at the CDN/edge layer before the page is delivered to the browser. When a visitor requests a page, the edge function (Cloudflare Worker, Vercel Edge, AWS Lambda@Edge) determines their variant assignment and serves the appropriate version.
Advantages:
Disadvantages:
The engineering team builds A/B tests directly into the frontend application using a feature flagging library (LaunchDarkly, Statsig, GrowthBook). The test variant is determined in the application logic, not by a JavaScript overlay.
Advantages:
Disadvantages:
Some modern A/B testing tools are designed to work after React hydration completes. They use React-aware DOM selectors and fire after the component tree is stable.
Advantages:
Disadvantages:
CustomFit.ai's implementation works in this mode and is compatible with headless frontends where the snippet is loaded after component hydration.
For headless stores where content comes from a CMS (Contentful, Sanity, Prismic), you can run experiments at the content layer โ delivering different content blocks to different visitor segments via the CMS's preview or variant content features.
This is content testing, not page-level A/B testing, but it handles a large subset of typical ecommerce tests: hero copy, product descriptions, landing page headlines.
The testing roadmap for headless stores mirrors traditional ecommerce, with a few additions specific to the headless context:
Standard tests (same as any ecommerce):
Headless-specific tests: 6. Page transition speed vs conversions: Does using client-side navigation (no full page load on category browse) improve CVR vs traditional navigation? 7. Lazy loading threshold: At what scroll percentage should product images load? Test different thresholds and their impact on add-to-cart. 8. Infinite scroll vs pagination: Does infinite scroll on category pages improve CVR or increase scroll-without-purchase behaviour? 9. Component render order: Does showing the price and CTA before the image gallery (common in mobile headless layouts) improve or hurt CVR? 10. Progressive disclosure: Does collapsing product descriptions on mobile and expanding on click improve or hurt purchase intent?
Personalization is actually easier to implement well in headless commerce than in traditional platforms โ if your engineering team builds the right hooks.
API-level personalization: The backend can return personalized product rankings, recommendations, and content blocks based on user segment. The frontend simply renders what the API returns. No DOM manipulation required.
Edge-level personalization: Run a user identification function at the edge that injects segment data (new vs returning, geo, device) as cookies or headers. The frontend reads these and renders appropriate variants.
Client-side personalization (post-hydration): CustomFit.ai and similar tools read browser signals (UTM parameters, cookies, on-page behaviour) and modify the rendered DOM. Works for most personalization use cases without requiring backend changes.
For Indian D2C brands on headless, the most impactful personalizations are:
The primary reason to go headless is speed. Here is what speed improvements mean for CRO:
A headless rebuild done well can take LCP from 4+ seconds to under 2 seconds. On a store doing โน5 crore/month with 70% mobile traffic, that speed improvement alone may add โน25โ50 lakh in monthly revenue โ before any traditional CRO testing.
The key word is "done well." Poorly implemented headless builds with bloated JavaScript bundles can be slower than the Shopify theme they replaced.
For brands considering going headless:
For brands already headless:
For brands on traditional platforms considering CRO:
Related reading: