This guide shows how to add a Shopify online visitors counter in about a minute, with no app: you paste one snippet into the product or page template itself, because a live count only changes behaviour when it sits in the same line of sight as the price or the button. No app. Shopify renders raw HTML and script tags inside a Custom Liquid block, so there is nothing to install from the App Store.
What this Shopify online visitors counter shows
The online-now counter shows how many people are on your site right now. The number rises when a visitor arrives and drops a few minutes after they leave, and bots are filtered out. It works well on pages where a sense of activity helps, such as a launch page, a live event, a forum or a busy store.
How to add an online users counter to Shopify
- Step 1
- Open Online Store → Themes → Customize and select the Product or Default page template.
- Step 2
- Click Add block inside the main content area and choose Custom Liquid.
- Step 3
- Paste the snippet, then drag the block to sit directly under the price, the Add to cart button, or wherever it earns its place.
- Step 4
- Save, then view the live page to confirm.
- Older theme, or no Custom Liquid block?
- For a one-off page you can also use Online Store → Pages, open the page, and click the <> (Show HTML) button in the rich text editor before pasting. Pasting into the visual editor instead silently strips the script tag.
Where it works best on a Shopify site
On Shopify, the right spot is the product or page template itself. A live count only matters if people see it near the decision they're making, so place it in the content, near the price, the sign-up form or the main button, rather than tucked away in the footer.
Shopify plan and editor requirements
Every Shopify plan lets you edit your theme code and add a Custom Liquid section, so no upgrade is needed. The one platform-wide restriction is checkout: Shopify doesn't allow third-party scripts on checkout pages, so widgets work everywhere else in your store, including the home, collection, product, cart and blog pages.
Three things that trip people up on Shopify
- Check which theme you actually edited
- Shopify lets you customise an unpublished theme, and the editor looks identical either way. If you pasted the snippet, saved, and the live store shows nothing, you almost certainly edited a draft or the duplicate you made as a backup. Online Store → Themes shows which one is under Live — edit that one, or publish the one you edited.
- Use Custom Liquid, never the visual editor
- Shopify's rich text editor for pages, articles and product descriptions strips script tags on save without warning you. The Custom Liquid block, the <> Show HTML view, and raw .liquid files in Edit code all pass markup through untouched. If your snippet disappeared the moment you saved, that is the reason.
- Checkout pages are off limits
- Shopify does not allow third-party scripts on checkout — that is a platform restriction, not a widget limitation. Everything else is fair game: home, collection, product, cart, blog, pages and the 404. Put the widget in the footer and it covers all of them in one paste.
Honest limits
On a small site the honest number will often be one or two, which can look quiet. If that's your situation, a hit counter or flag counter tells a better story until traffic grows.
Shopify questions
- Do I need an app to add an online users counter to Shopify?
- No app. Shopify renders raw HTML and script tags inside a Custom Liquid block, so there is nothing to install from the App Store. Installing an app for this would mean another dependency and update cycle just to show one widget.
- Where exactly does the snippet go on Shopify?
- The product or page template itself, because a live count only changes behaviour when it sits in the same line of sight as the price or the button.
- Will it slow my Shopify site down?
- It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Shopify serves your storefront from its own CDN and that doesn't change — the snippet is a single async tag, so it loads alongside your theme instead of in front of it. Nothing needs excluding from Shopify's own minification.
- Does it work with page builders like Shogun?
- Shogun: drag in the HTML/Liquid element and paste there. PageFly: use the HTML/Liquid element. GemPages: use the Liquid element. Shopify's own theme editor: add a Custom Liquid block. Any builder with a raw-HTML or code block will render it.
- How long does a visitor count as online?
- A visitor is counted from the moment they load a page until about five minutes after their last activity, which is the usual definition for 'online now' counters.