Loading projects

All projects

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.

Role
Sole designer and developer
Team
The owner, Marketing, and the Ops and Finance team
Timeline
7 months · 2026
Platform
Website: Next.js and Shopify

Shipped, 4 November 2026. 6 min read.Visit the live site (opens in a new tab)

The Air Station home page on a laptop and phone. The headline reads If “I’m just tired” has become your everyday answer, above 2 buttons.

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%
How these were measured
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.
How might wehelp people buy fast or reach a person, without adding work for the team?

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$.

Old Wix bundle page with click marks on plain-text bundle items, and a price shown as $2,204.00 with no currency.
Before: Wix, replayed in Clarity
Product page for the Löwenstein prisma SMART max: 2 bundle cards with Machine + mask selected, the price in S$ and Add to cart.
After: the live product page

Clarity showed where visits failed; staff named the manual work

WhatWhoWhyHow
Microsoft ClarityA free tool that records visits to a website as replays and heatmaps. reviewAbout 30,000 Wix visits, September 2025 to May 2026The 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-onesEach department, one at a timeTo 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 benchmarkLofta and CPAP.comTo 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 buildThe owner and managementTo 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 workshopMarketing and me, 2 hoursTo 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 checksStaff from every departmentTo 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

ShopperWhen itfailsA personFindChooseBuycheck outcheckout did not opennot paidtry againWhatsAppadd to cartsold outaskFind a productby category orneedProduct pagereal controls, S$pricesCartdelivery,address,prescriptionShopifycheckoutpay with HitPayPage failedtry again or gohomeSold outAdd to cart turnsoffCart keptfor the next visitAsk a personWhatsApp, callor form

Find

Choose

Buy

Find, choose, give delivery details, then pay on Shopify.

Select a step to see what happens there.

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.

Run theshopBrowseBuyCPAPmachinesPaymentBrowserNext.js on VercelShopifyHitPaypublishcheck outmachineshand overpayreadreferencedelivery daysconsentClarity andGA4after consentDelivery syncevery 15 minutesShopify adminprices, stock,delivery daysVisitorphone or laptopRegion routing/sg or /myPagescatalogue kept60 secondsStorefront APIproducts andwordsCartin the browserCheckout APImakes theShopify cartShopifycheckoutcontact,delivery,paymentPrescriptionfiles in VercelBlobHitPaytakes payment

Browser

Next.js on Vercel

Shopify

HitPay

Checkout turns the browser cart into a Shopify cart, then HitPay takes payment.

Select a step to see what happens there.

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.
  1. Next.js on Vercel, in code I can trace when it breaks
  2. Shopify runs cart and checkout, and HitPay takes payment
  3. 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.

Old Wix store page, September 2026: 15 categories in one filter list beside product tiles, with prices shown without a currency.
Before: 15 categories in one Wix filter list
After: the Shop menu sorts by type, and Shop by need lists 5 needs.
  1. Shop by product sorts machines, masks, accessories and wellness by type
  2. 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.

1. The buy box shows only the 4 masks that fit, and asks for a size.
2. Singapore postcodes have 6 digits, so a 5-digit entry gets an error that names the fix.
Device-to-Device Comparison on desktop: the Prisma SMART max beside 2 other Löwenstein machines, with prices and therapy mode.
3. A comparison of 3 machines, on the product page
  1. Bundle, mask and size are chosen in the buy box
  2. 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.

Closures set once in Shopify admin change what the cart offers.
  1. Every 15 minutes, the site checks Shopify and turns delivery choices on or off
  2. 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
Visits with a script error, day by day, by day
DaySiteShare of visits
14 OctWix29.4%
15 OctWix22.2%
16 OctWix29.3%
17 OctWix14.8%
18 OctWix9.5%
19 OctWix27.8%
20 OctWix33.6%
21 OctWix29.2%
22 OctWix30.9%
23 OctWix32.2%
24 OctWix24%
25 OctWix19.1%
26 OctWix25.8%
27 OctWix30.1%
28 OctWix26.5%
29 OctWix36.2%
30 OctWix34.9%
31 OctWix12%
1 NovWix17.6%
2 NovWix31.9%
5 NovNew site0%
6 NovNew site0%
7 NovNew site0%
8 NovNew site0%
9 NovNew site0%
10 NovNew site0%
11 NovNew site0%
12 NovNew site1.8%
13 NovNew site0%
14 NovNew site0%
15 NovNew site0%
16 NovNew site0%
17 NovNew site0%
18 NovNew site0%
19 NovNew site0%
20 NovNew site0%
21 NovNew site0%
22 NovNew site0%
23 NovNew site1.7%
24 NovNew site0%
  • 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
Orders a month, against the Wix average

The new shop's first 23 days, scaled to a month.

Show the monthly figures
MonthOrders, against the Wix average
Feb1.4x
Mar1.4x
Apr1.2x
May0.6x
Jun0.6x
Jul0.9x
Aug1.1x
Sep0.3x
Oct1.4x
Nov, new shop3.6x

Singapore store, from Wix and Shopify sales reports. Early figures. I will repeat this in late January 2027 without test orders and refunds.