Lazy Developer
Dev Stuff #10

Are "23 people viewing now" messages real? I built a fake shop to find out

I'm looking at a pair of slippers and the page says "23 people are viewing this right now." Below it: "Only 3 left." Next to it: "Someone in Seoul just bought this." Suddenly I'm in a hurry. But is that number even real??

Comparing a shop that invents its numbers with one that counts real visitors, by refreshing both

So I built two shops. One counts real visitors. The other makes its numbers up. The fake one took exactly two lines of code.

These messages have a name

"X people are viewing," "only X left," "someone just bought this." They're called dark patterns: designs that quietly push you toward what the site wants.

In July 2023, Korea's Fair Trade Commission published guidelines sorting dark patterns into 19 types. The "pressure" group includes low-stock messages, other shoppers' activity messages, and countdown timers. All different ways of saying "hurry up" with a screen.

They're everywhere

That same year, the Korea Consumer Agency checked 76 shopping apps and websites. It found 429 dark patterns, about 5.6 per service.

The most common was the activity message. 71 out of 76, or 93.4%, used one. Countdown timers showed up on 57 (75%).

Some really were made up

Does that mean every number is fake? No. You can show these messages with real numbers too.

In 2019, Princeton researchers crawled about 11,000 shopping sites and 53,000 product pages. They found 313 activity messages like "X people are viewing." They opened the code for the ones generated in the browser, and found 29 fake ones on 20 sites.

The method is a letdown. Most used a random number generator for the "currently viewing" count, and some just replayed pre-written notifications. 17 sites faked their low-stock messages too. 16 of them counted down on a fixed schedule and then started over. 8 of the 17 used third-party plugins that generate these numbers.

Try it: find the fake shop

Refresh both shops a few times. After about four, you can pick.

The real shop barely moves. Ten visitors don't show up and vanish in one second. The fake one jumps every time, and its stock drops to 2 and then goes back to 5.

Here's the whole fake shop.

viewers = 12 + Math.floor(Math.random() * 27)
stock = 5 - (visits % 4)

Line one picks any number from 12 to 38. Line two cycles 5, 4, 3, 2 forever. Counting real visitors means a server tracking everyone who's online. Faking it is much easier.

What the law covers

Since February 14, 2025, Korea's revised e-commerce law has banned six dark patterns. Hidden renewals, drip pricing, preselected options, misleading button hierarchy, obstructing cancellation, and repeated nagging.

"X people are viewing" isn't one of the six. It's in the guidelines, but those are closer to advice the industry is asked to follow. So for now, it's on you to spot it.

How to tell

  • Refresh two or three times. A number that jumps wildly is suspicious
  • If "only 2 left" is back to 5 on the next visit, it's almost certainly fake
  • If every product says "almost sold out," it's decoration
  • When a page rushes you, put it in your cart and sleep on it

The one-line version

"X people are viewing" might be real, or it might be two lines of random numbers. Three refreshes usually tell you which.

Sources: Dark Patterns at Scale (Princeton, 2019) · Survey of 76 shopping services (MTN, Korean) · FTC dark pattern guidelines (Seoul Shinmun, Korean) · Six banned types under the revised law (Newsis, Korean)