Skip to content
All articles

Shopify

Shopify "people viewing this product": real count or random?

How to tell whether the "people viewing this product" line on your Shopify store counts real visitors or picks a random number, and how to show a real one.

Provedly team··5 min read

Most "people viewing this product" lines on Shopify stores are random: a theme snippet or app picks a number between a minimum and a maximum, and nothing counts anybody. A real count is possible, but it needs a server that hears from every open page and adds them up. You can tell which one your store has with two browser windows and a minute of watching, and if it turns out to be random, you can replace it with a real count that stays hidden when the page is quiet.

How random counters work

The usual version is a few lines in a theme section or an app setting with two fields: minimum viewers and maximum viewers. When the page loads, the script picks a number in that range and prints it. Some versions add touches to make it feel alive:

  • Drift. The number moves up or down by one or two every few seconds.
  • Stickiness. The number is saved in your browser, so a reload shows the same figure.
  • Seeding. The number is worked out from the product, so every visitor sees the same figure for that product.

None of these counts a visitor. They only make the random number harder to spot. When we scanned 200 small Shopify stores that use urgency apps, 5 of the 11 "people viewing" counters we found were generated in the browser, and only 2 came from live data. Our earlier post on why fake viewer counters are a liability covers the risk side.

How a real count works

A real counter has three parts:

  1. A heartbeat. While the page is open, the visitor's browser tells a server, every so often, "I am still here on this page".
  2. A window. The server counts the distinct visitors it heard from on that page within a recent period.
  3. A minimum. Below a threshold, the line stays hidden, so a quiet page does not say "1 person is viewing this".

That design has consequences you can see. A real count is often small. It is the same for everyone on the page at the same moment. It rises when more people arrive and falls a short while after they leave. At night, or on a product nobody is looking at, it disappears.

How to tell which one you have

Run these tests on one of your own product pages. Use private windows so the store treats each one as a new visitor.

Test Real count Random count
Open the page in two private windows at once Both show the same number They usually differ
Open a third window The number goes up by one in every window Nothing changes, or it changes at random
Reload one window The number stays put Often a new number
Visit a product nobody looks at Hidden, or a very small number A number in the usual range
Close all windows but one Drops back after a short while No reaction

A sticky or seeded counter can pass the first and third tests, because it shows the same figure everywhere. It fails the second: opening another window does not move it. That is the test that matters most, because it is the one that asks the counter to count.

You can also look at the code. In your theme editor, search the product template and snippets for words like "viewers" or "viewing". A script that uses something like Math.random with a min and max is the giveaway. If the counter comes from an app, check its settings for minimum and maximum fields.

If you would rather not do it by hand, paste the product page into the free checker. It loads the page as new visitors several times and reports whether the number came from a server or was made up in the browser.

How to show a real count on Shopify

The steps are short:

  1. Remove the random counter. Delete the snippet from your theme, or turn the feature off in the app. Do this first, so you never show two numbers.
  2. Add a live counter script that sends a heartbeat and receives the real count.
  3. Place the counter line near the Add to cart button. On Shopify, if the counter comes from an app, look for its app block in the theme editor and drag it under the button. Without one, use a Custom liquid block in the product template; our guide to adding a Custom liquid block in Horizon walks through it.
  4. Test with three windows: alone you should see nothing, with two windows you should see 2, with three you should see 3.

Word the line plainly. "3 people are viewing this right now" is enough. Avoid adding "Hurry" or "Selling fast" next to it; the number already says what it says.

Doing this with Provedly

Provedly's live counter works the way described above:

  • The browser sends a heartbeat every 30 seconds.
  • The count is distinct visitors on that page in the last 90 seconds.
  • It stays hidden below a minimum you set, 2 by default.
  • You place it inline with <div data-provedly-live></div>. Add data-style="card" for a boxed version with a Verify link, data-template="{n} people are viewing this" for your own wording, or data-dot="off" to remove the dot.

Nobody can type a number into it, including you. The full click-by-click setup is in how to show a real people viewing count on any website. On Shopify you install the Provedly Shopify app from the Shopify App Store, switch on its app embed, then open Widget, Install and click Add to product page. That adds the Product proof block, which puts the count under the Buy button with no code. It can also show units sold and stock left, both real; see real "only N left" and "N sold" on Shopify.

Frequently asked questions

Why does my real counter disappear so often?

Because there are often fewer people on the page than the minimum. That is the counter being honest. On a small store, a product page will often have one visitor or none at a given moment. The line shows up when there is a crowd worth mentioning.

Can I set a real counter to show a higher number?

No, and you should be wary of any tool that lets you. A multiplier or a "boost" setting turns a real count back into an invented one. What you can change is the minimum, which only decides when the line appears.

Is a random "people viewing" counter allowed on Shopify?

We are not lawyers and this is not legal advice. Shopify themes and apps can technically include one, but consumer regulators, including the UK's Competition and Markets Authority, have said that invented popularity can mislead shoppers. A count of real visitors avoids the question.

Add a real live visitor counter to your Shopify product pages on Provedly's free plan by creating an account.

shopifylive visitor counterfake urgencyproduct page

Get new articles by email

Honest social proof, verified purchases and what actually moves conversion. A few emails a month at most; leave with one click.

We email you once to confirm. Your address is used only for this newsletter; see the privacy policy.

Show proof you can stand behind.

Free plan, one site, 2,000 impressions a month, verified purchases included. The badge on the free plan links to your verification page, which is the point.