At a glance
- Client: JD Sports
- Role: Principal Engineer, contracting through NorthStar Digital Consulting (July 2026 to present)
- Team: a cross-functional optimisation squad: engineering, QA, UX, product and analytics
- Stack: Next.js, React, TypeScript, GraphQL, headless CMS, config-driven feature flags, New Relic
- Headline results (UK rollout): +11.4% conversion, +25.2% revenue, +24% completed express payments
The challenge
Checkout is where friction costs the most. JD's legacy checkout split the purchase into several steps, asked shoppers to choose between guest and sign-in before they had started, and tucked delivery details and express payments behind drawers and modals.
The business wanted a simpler journey, but a big-bang switch on a high-volume retail checkout was never an option, least of all in the run-up to peak. So the brief was really two problems: design a faster checkout, and build a way to ship it safely alongside the one that was already taking orders.
Running two checkouts behind one URL
I owned the architecture decision for how the new checkout would coexist with the legacy one:
- No redirects. Every shopper stays on
/checkout. The variant is chosen by a server-side rewrite, so existing tracking and tagging keep working untouched. - Deterministic, sticky bucketing. Shoppers are assigned by hashing a stable anonymous ID against a rollout percentage, then pinned with a cookie. The cookie carries the config version, so changing the percentage, or rolling back to zero, re-buckets everyone straight away.
- A kill switch and a safe default. One config value can force every shopper onto a single variant without a deploy. If config can't be read, the request falls back to the legacy checkout instead of failing.
- No shared caching of what is now a personalised response.
On the client, the new checkout uses a React Context and useReducer store with a second, side-effect-only analytics reducer. Every action passes through both, so analytics events fire once per confirmed action instead of being scattered through components. Server state stays in sync through tag-based cache invalidation after GraphQL mutations, with optimistic updates for fast feedback.
Proving it before rolling it out
Checkout V3.1, a guest-first one-page checkout with address, delivery and express payments visible in the main flow, went into a controlled A/B test in Ireland against the legacy checkout. It converted 4.68% better and lifted revenue by 5.78%.
On 2 October 2026 we rolled it out to 100% of UK traffic, followed by JD's other European stores.
| UK rollout | Change |
|---|---|
| Conversion | +11.4% |
| Revenue | +25.2% |
| Completed express payments (Apple Pay made more visible) | +24% |
Beyond the checkout rebuild
The same squad shipped a run of initiatives where I was the developer owner:
- Checkout V4. A single-view checkout with the order summary at the top and stronger Apple Pay placement, plus richer observability and broader unit, integration and end-to-end coverage. It rolled out in staged percentages with hypercare and go/no-go checkpoints, and I was the technical owner for launch readiness.
- Instant Checkout. An express Apple Pay route straight from the product page for shoppers who land there ready to buy, A/B tested in Ireland.
- Cart optimisation. On mobile and tablet the bag now opens with the total, the checkout button and express payments, reusing the checkout's express payment component.
- Delivery cut-off countdowns. Showing shoppers how long they have left to order for next-day delivery.
- Black Friday content components. A countdown promo banner, a dark-mode product grid, an auto-paging offer carousel that pauses on hover and focus and respects reduced motion, and a larger promo panel on the product page. The content team runs all of it from the CMS without developer help.
What made it work
- Treat rollout as a feature. Percentage rollout, the kill switch and the safe fallback were designed in from day one, not bolted on before launch.
- Let the A/B test make the case. Ireland gave a clean read before the bigger UK bet.
- Hand over as you go. Each initiative finished with a product summary, a runbook and an architecture decision record, so the next team can pick it up without me in the room.