The Air Station: Sleep Therapy Shop
Visits with a script error fell from 26.6% to 0.2% after I rebuilt this Wix shop on headless Shopify.
Shipped, 4 November 2026. 6 min read.Visit the live site (opens in a new tab)

Screens are captures of the live site, 26 and 27 November 2026. The animated demos are rebuilt in code with the site's own words.
I designed and built the shop, and management approved each step
- What it is
- The Air Station sells CPAPA machine that blows air through a mask to keep the airway open during sleep. machines, masks and sleep therapy in Singapore.
- The problem
- On Wix, 26.6% of visits hit a script errorCode on the page that failed to run in the visitor's browser., and the most clicked filters did nothing.
- What I did
- I rebuilt it on headlessThe site's own front end in Next.js, with Shopify behind it for products, cart and checkout. Shopify. Shoppers can find a product by type or by need, product controls respond, and delivery pauses run themselves.
- What changed
- Script errors fell to 0.2% of visits. Add to cart also rose, but the 2 sites log it differently, so that is a trend only.
- 0.2%Visits with a script errorfrom 26.6%
- 14.5%Visits with dead clicks, desktop product pagesfrom 26.6%
- 4.6%Add-to-cart rate, trend onlyfrom 2.7%
- 0.18%Visits with rage clicksfrom 0.54%
In 8 months on Wix, the contact page had 2,891 visits and the shop had about 9 online sales. Most visitors wanted a person.
My part
- I read 8 months of Microsoft Clarity data and met each department.
- I designed the site and its design system.
- I built the site and its Shopify ops tools, and wrote a 73-page guide for the team.
The team's part
The owner and management approved each change, and Marketing shaped the content. Ops and Finance run the store.
Old product pages looked clickable but were plain text
Bundles became cards you select, and every price shows S$.
Clarity showed where visits failed; staff named the manual work
| What | Who | Why | How |
|---|---|---|---|
| Microsoft ClarityA free tool that records visits to a website as replays and heatmaps. review | About 30,000 Wix visits, September 2025 to May 2026 | The shop had no UX designer and no way to see how visitors used it. | Clarity is free and my team's budget was tight, so I chose it over Hotjar. I studied its recordings, heatmaps and rage clicksSeveral fast clicks in one spot, a sign the visitor is stuck.. |
| Staff one-to-ones | Each department, one at a time | To find the work staff still did by hand. | I met each department and listed the tasks they did by hand, such as delivery pauses, invoices and packing slips. |
| Competitor benchmark | Lofta and CPAP.com | To see how other sleep shops help people find a product. | I compared how each shop sorts its products: by product or by need. |
| Live lo-fi build | The owner and management | To choose between headless Shopify and a theme with apps. | I built a working low-fidelity site and reviewed it with them in one session. They chose headless Shopify. |
| Content workshop | Marketing and me, 2 hours | To decide what the pages say, and in what order. | We sorted the questions visitors ask, then set the page order and the 5 needs in Shop by need. |
| Staff testing and launch checks | Staff from every department | To check each team could do its own work before launch. | Each team ran its own tasks on the staging site before we switched from Wix to the new site. |
One way to buy, and a next step when a step fails
Find
Choose
Buy
Read this diagram as text
- Buy: Find, choose, give delivery details, then pay on Shopify. Steps: Find a product, then Product page, then Cart, then Shopify checkout.
- When it fails: Each failure offers a next step, and the cart is kept. Steps: Find a product, then Page failed, then Product page, then Sold out, then Cart, then Shopify checkout, then Cart kept.
- Ask a person: A failed page or a sold-out product leads to a person. Steps: Page failed, then Sold out, then Ask a person.
- Find a product: Filters that respond, or Shop by need, which starts from 5 needs.
- Product page: Sizes and bundles are buttons, images open in a viewer, and prices show S$.
- Cart: Asks for delivery or collection, the address and, for a machine, a prescription or waiver.
- Shopify checkout: Shopify takes payment through HitPay, then shows a thank-you page and sends an email.
- Page failed: A failed page offers Try again, home and WhatsApp, and a broken link gets a 404.
- Sold out: Add to cart becomes Out of stock, with a line on how to ask when it is back.
- Cart kept: If checkout does not open or payment stops, the cart stays in the browser.
- Ask a person: WhatsApp, a call or the enquiry form, which reaches the team by email and in Shopify.
I went headless so plugin scripts could not break the shop again
Wix plugins loaded scripts from other domains. They broke without warning, and the owner could not fix them.
Browser
Next.js on Vercel
Shopify
HitPay
Read this diagram as text
- Buy: Checkout turns the browser cart into a Shopify cart, then HitPay takes payment. Steps: Cart, then Prescription, then Checkout API, then Shopify checkout, then HitPay.
- Browse: Vercel sends each visitor to their country's shop and Shopify store. Steps: Visitor, then Region routing, then Pages, then Storefront API.
- Run the shop: The team edits prices, stock, words and delivery days in Shopify, with no code change. Steps: Shopify admin, then Storefront API, then Delivery sync, then Clarity and GA4.
- Clarity and GA4: Loads only after a yes to analytics cookies, and never on prescription pages.
- Delivery sync: Every 15 minutes, a Vercel job reads delivery days and closures and sets delivery choices.
- Shopify admin: The team edits prices, stock, words and delivery days, and reads enquiries.
- Visitor: Lands on theairstation.com, and visitors in Malaysia get Malaysian prices.
- Region routing: Vercel sends each visitor to /sg or /my by country, and the old .my domain redirects.
- Pages: Next.js 16 pages keep each catalogue 60 seconds, and a webhook refreshes it on change.
- Storefront API: Gives products, prices, stock and the words on each page.
- Cart: One cart per country, kept in the browser after an unfinished checkout.
- Checkout API: Makes the cart in that country's Shopify store and returns the checkout link.
- Shopify checkout: Asks for contact, delivery and payment, then shows a thank-you page and sends an email.
- HitPay: Takes payment in both countries, with DuitNow QR in Malaysia, and pays out.
- Prescription: A machine needs a prescription or signed waiver, kept 5 years in Vercel Blob.
- Next.js on Vercel, in code I can trace when it breaks
- Shopify runs cart and checkout, and HitPay takes payment
- Prescriptions for machines are kept 5 years, with no analytics on those pages
Trade-off
I turned down a quicker Shopify theme with apps, as it would bring back the plugin risk that broke Wix.
2 ways in, because shoppers know the product or the problem
On the old store page, the most clicked filters did nothing.
- Shop by product sorts machines, masks, accessories and wellness by type
- Shop by need starts from 5 needs, such as “Understand my sleep”
Evidence
On phones, visits with a dead clickA click or tap that gets no response from the page. on product listing pages fell from 4.6% to 0.5% (Microsoft Clarity).
Shoppers clicked bundles, images and sizes, so now they respond
On old product pages, 26.6% of desktop visits had dead clicks.
- Bundle, mask and size are chosen in the buy box
- Delivery fees and a postcode check sit above the fold
Evidence
On the new product pages, desktop visits with dead clicks fell to 14.5%.
Delivery pauses now run themselves, set once in Shopify
The Wix shop could not pause delivery for a holiday.
- Every 15 minutes, the site checks Shopify and turns delivery choices on or off
- Each machine order arrives with its prescription or signed waiver
Visits with a script error fell from 26.6% to 0.2%
Visits with a script error, day by day
Wix: 9.5% to 36.2% of visits each day. New site: 0% on 18 of 20 days, and under 2% on the other 2.
Microsoft Clarity, Singapore visitors
Show the daily figures
| Day | Site | Share of visits |
|---|---|---|
| 14 Oct | Wix | 29.4% |
| 15 Oct | Wix | 22.2% |
| 16 Oct | Wix | 29.3% |
| 17 Oct | Wix | 14.8% |
| 18 Oct | Wix | 9.5% |
| 19 Oct | Wix | 27.8% |
| 20 Oct | Wix | 33.6% |
| 21 Oct | Wix | 29.2% |
| 22 Oct | Wix | 30.9% |
| 23 Oct | Wix | 32.2% |
| 24 Oct | Wix | 24% |
| 25 Oct | Wix | 19.1% |
| 26 Oct | Wix | 25.8% |
| 27 Oct | Wix | 30.1% |
| 28 Oct | Wix | 26.5% |
| 29 Oct | Wix | 36.2% |
| 30 Oct | Wix | 34.9% |
| 31 Oct | Wix | 12% |
| 1 Nov | Wix | 17.6% |
| 2 Nov | Wix | 31.9% |
| 5 Nov | New site | 0% |
| 6 Nov | New site | 0% |
| 7 Nov | New site | 0% |
| 8 Nov | New site | 0% |
| 9 Nov | New site | 0% |
| 10 Nov | New site | 0% |
| 11 Nov | New site | 0% |
| 12 Nov | New site | 1.8% |
| 13 Nov | New site | 0% |
| 14 Nov | New site | 0% |
| 15 Nov | New site | 0% |
| 16 Nov | New site | 0% |
| 17 Nov | New site | 0% |
| 18 Nov | New site | 0% |
| 19 Nov | New site | 0% |
| 20 Nov | New site | 0% |
| 21 Nov | New site | 0% |
| 22 Nov | New site | 0% |
| 23 Nov | New site | 1.7% |
| 24 Nov | New site | 0% |
- Microsoft Clarity, Singapore visitors only, as a share of visits. Wix: 14 October to 2 November 2026. New site: 5 to 24 November 2026.
- Script errors and desktop dead clicks are separate measures that both started at 26.6%.
- The 2 sites log add to cart under different event names, so that figure is a trend only.
- Google Lighthouse 12.8.2, 26 November 2026: SEO, Accessibility and Best Practices scored 100, and desktop Performance 92 to 97.
First 23 days: 3.6 times the orders a month, at twice the order value
- 3.6xOrders a month in the new shop's first 23 days, against the Wix average for February to October 2026
- 2xAverage order value, same periods
- 2 daysFrom launch to the first orders
The new shop's first 23 days, scaled to a month.
Show the monthly figures
| Month | Orders, against the Wix average |
|---|---|
| Feb | 1.4x |
| Mar | 1.4x |
| Apr | 1.2x |
| May | 0.6x |
| Jun | 0.6x |
| Jul | 0.9x |
| Aug | 1.1x |
| Sep | 0.3x |
| Oct | 1.4x |
| Nov, new shop | 3.6x |
Singapore store, from Wix and Shopify sales reports. Early figures. I will repeat this in late January 2027 without test orders and refunds.