Skip to content
Get Ranked On TopIllustrative case studyCommerce SEO plan

A fictional business. The figures are a modelled scenario, not a client result.

Tulivu Pharmacy · Online pharmacy, 4 branches · Nairobi

How a Nairobi online pharmacy stopped losing rankings every time a product sold out

+71% organic orders, through every stock gap

16 months · Middle East & Africa · Commerce SEO plan · Out-of-stock handling · Product schema · Unique product copy · Merchant feed

Tulivu Pharmacy · online pharmacy

OTC products
6,000
Branches
4
Delivery
Same day

Modelled outcome · month 16

Organic orders a month

+71%

01The challenge

The shelf empties. The page disappears.

Tulivu's 6,000 product pages reused manufacturer copy, had no availability markup and returned 404 the moment stock ran out, so every gap cost a ranking.

Tulivu runs four branches across Nairobi and delivers the same day. Its catalogue of 6,000 over-the-counter products churns constantly: port delays, supplier switches, reformulations, and rainy-season demand that clears the repellent shelf in a week. The website treated every one of those moments the same way: delete the product, serve a 404, and start again from zero when the stock came back.

1,140

product pages answered “404 Not Found” in a single year.

38% of the products that ranked in the top ten before a gap never got back there.

Product pages returning 404, week by week · the 12 months before
02040JanAprJulOct

02Diagnosis

What the audit found behind the counter.

Product copy

87%

5,220 of 6,000 product pages used the manufacturer's description word for word, the same text found on dozens of other Kenyan pharmacy sites. Search engines had no reason to prefer Tulivu's page over anyone else's.

Finding 1 of 4

Stock gaps

1,140

In twelve months, 1,140 product URLs returned 404 the moment stock hit zero, then came back as brand-new pages after restocking. Median gap: 9 days. Every comeback started from scratch.

Finding 2 of 4

Markup

0

Not one page carried Product or Offer markup: no price, no availability, no rating in search results, and nothing to tell Google that an empty shelf was only temporary.

Finding 3 of 4

Lost rankings

38%

Of the products that ranked in the top ten before a stock gap, 38% never returned there after restocking. Their links and reviews had been pointing at a dead end.

Finding 4 of 4

03The strategy

Four active ingredients.

Built on our Commerce SEO plan: the ecommerce engagement for catalogues where product pages, feeds and structured data decide what gets found.

Package leaflet · read before use

  1. 1.Out-of-stock handling

    Stock status now drives the HTTP status. Temporarily out: the page stays 200, says when it is back and links in-stock alternatives from the same shelf. Replaced: a 301 to the successor SKU. Discontinued with no successor: a 410, with the closest alternatives on the page. Seasonal: a 200 with the back-in-season date.

  2. 2.Product schema

    Product, Offer and AggregateRating markup on all 6,000 pages, with price in KES, availability and branch stock pulled from the inventory system every 15 minutes, so search results show what is really on the shelf.

  3. 3.Unique product copy

    The 2,400 best-selling pages rewritten by Tulivu's own pharmacists: what the product is for, who should not take it, the dose in plain language and when to see a doctor. Each page is signed and dated by the pharmacist who reviewed it.

  4. 4.Merchant feed

    One product feed for free listings and Shopping ads, synced to branch stock, with same-day delivery zones and a pick-up-today flag per branch. Items that run out are paused in the feed, never deleted.

04Press a cell

Four ways a product leaves the shelf. Four right answers.

Each foil cell is a product that ran out. Press one to see what the old site did, what the server says now, and what that does to the page's search traffic.

1 of 8 cells pressed

TLV-0412Temporarily out

Paracetamol 500 mg, 24 tablets

The supplier's shipment was held at the port: back in 11 days.

Before

404 Not Found

The page vanished, and its ranking, links and reviews went with it.

Now

200Keep the 200, mark it OutOfStock

Organic clicks / week
340
Linking sites
14
Days without stock
11

The decision

  1. Will this exact product come back?YesNo
  2. Is the gap seasonal?YesNo
  3. 200 · Keep the 200, mark it OutOfStock

What the server sends now

HTTP/1.1 200 OK"@type": "Offer","price": "180","priceCurrency": "KES","availability": "https://schema.org/OutOfStock"

Organic clicks a week, index (100 = before the stock-out)

W0W2W4W6W8
Old handling (404)New handling (200)

The product will be back. Keeping the URL live with a 200, an OutOfStock offer, a restock date and in-stock alternatives holds its ranking, links and reviews in one place. Google learns the shelf is empty without forgetting the page.

05Month by month

16 months, one dose at a time.

  1. Months 1–2

    Audit

    Crawl of all 6,000 product URLs, twelve months of stock logs matched against Search Console, and every 404 traced to the stock event behind it.

  2. Months 3–4

    Stock policy

    The four rules wired into the store platform: product status now sets the HTTP status, with no one deleting pages by hand.

  3. Months 5–7

    Schema & feed

    Product and Offer markup on every page; the merchant feed synced with branch stock every 15 minutes.

  4. Months 8–13

    Rewrite

    2,400 best-sellers rewritten and signed by pharmacists, starting with the pages that carry most of the revenue.

  5. Months 14–16

    Compound

    Category pages rebuilt around symptoms, and internal links from every out-of-stock page to in-stock alternatives.

06Results

Rankings that survive an empty shelf.

Organic orders a month

+71%

1,850 → 3,160 orders / month

Stock-gap 404s a year

1,140 → 0

Every stock event now gets a deliberate response

Top-10 rankings kept through a gap

62% → 94%

Share of top-ten products still in the top ten after a gap

Pages rewritten by pharmacists

2,400

Best-sellers first: these pages carry 80% of revenue

Modelled scenario for a fictional business — not a client result. Rankings and traffic are never guaranteed; see our Terms.

Organic orders a monthTulivu PharmacyWithout the stock policy (modelled)
1,5002,0002,5003,000M1M4M7M10M13M163,1601,860

1,520 stock events in 16 months, each answered on purpose

  • Temporarily out2001,020
  • Seasonal200130
  • Replaced by a new SKU301240
  • Discontinued410130

Queries, as people type them

QueryLanguageBeforeMonth 16
paracetamol delivery nairobien#14#3
ors sachets price kenyaen#22#5
dawa ya kikohozisw#31#8
vitamin c effervescent kenyaen#18#4
mosquito repellent nairobien#26#6
sunscreen spf 50 kenyaen#19#7
pharmacy delivery westlandsen#9#2
dawa ya mafuasw#35#11

Modelled positions in Nairobi. The Swahili pages were written by Tulivu's pharmacists, not machine-translated.

Keep your rankings when the stock runs out

Running a catalogue where products sell out, get replaced or come and go with the seasons? Start with the Commerce SEO plan, or tell us about your shelves.

All case studies