Skip to content
whoisbrowsing

Add whoisbrowsing to plain HTML

Updated

TL;DR

To see live visitors on any hand-written HTML site, put one script tag just before </body> or in <head>. It loads with async, so it never blocks your page, it is under 4 KB gzipped, and it never changes how the page looks.

Using an AI coding agent? Give it this prompt:

Add whoisbrowsing (live visitor view) to this project. Follow https://whoisbrowsing.com/SKILL.md exactly.

By using a script an agent makes for you, you agree to the Terms.

Your script

html
<script src="https://live.whoisbrowsing.com/s.js" data-site="YOUR_SITE_ID" async></script>

Replace YOUR_SITE_ID with your script's ID. No script yet? Get your script. Free. No card, and no account needed.

Where it goes

index.html
<!doctype html>
<html>
  <head>
    <title>My site</title>
  </head>
  <body>
    <!-- your page -->
    <script src="https://live.whoisbrowsing.com/s.js" data-site="YOUR_SITE_ID" async></script>
  </body>
</html>

Paste it on every page of your site, in the <head> or anywhere before </body>. Both work: the async attribute makes the browser load the script alongside your page and run it as soon as it arrives, so it never blocks your page. A shared layout or include, a static site generator or a template engine lets you add it once.

Static hosts

Netlify, GitHub Pages, Cloudflare Pages, Vercel and similar hosts just serve your files, so editing the HTML and redeploying is all it takes. The same script works on your computer and on your host: add both addresses to it on the home page, and each gets its own live view.

Content-Security-Policy note

If your site sends a Content-Security-Policy header, allow the script and its live connection: script-src https://live.whoisbrowsing.com and connect-src wss://live.whoisbrowsing.com. Nothing else is needed: the owner panel adds no inline styles. Most plain HTML sites send no such header, so you can usually skip this.

Verify

Before your visitors see it, add whoisbrowsing to your site's privacy policy (a paragraph to paste), and if the law requires your visitors' consent, get it first: see your responsibilities to your visitors.

  1. Deploy your site, or serve it locally. Open your site once. If the panel shows there, you're watching. If it doesn't, press Watch your site live on the home page. The home page shows the website as "Installed" once the script has loaded (or "Live now" while someone is there).
  2. To see a visitor arrive, open your site in another tab or window, or press Open a visitor window on the home page. That tab shows up as "you, testing". The tab with the panel is your owner view, and it is never counted.
  3. Move the mouse in the visitor tab. When both tabs are on the same page, its cursor moves in your owner view, and the panel lists it either way.

If you see nothing

  • Is the tag on the page you opened? Without a shared layout or include, every HTML file needs its own copy.
  • Did you open it through a web address? A page opened straight from disk (file://) has no website address to match. Serve it locally or deploy it, and add that address to your script.
  • Is an old copy cached? After deploying, reload the page; a CDN or host cache can serve the old HTML for a while.
  • Is it in the page source? Search the source for live.whoisbrowsing.com and check the data-site value.
  • Is this address in your script's list? localhost:8080 and your real domain are two websites, and so are a host's own address (such as you.github.io) and your domain. The script runs only on the websites listed for it, so add the one you open on the home page. If it ran on an address that isn't listed, the home page says so and offers to add it.
  • Testing from the EU/EEA, UK or Switzerland, or with Global Privacy Control on? Visitors in the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland, and browsers that send Global Privacy Control, are never shown or counted. In those countries nothing is shown, and nothing is kept on our servers: the script is empty there, and a visitor's live connection from there is refused. Your owner panel doesn't appear either. With Global Privacy Control on (Brave sends it by default), the panel still opens, but your own test tabs don't show.

Remove it

  1. Delete the tag from your pages (or your shared layout or include) and deploy. Visitors stop showing as soon as the change is live.
  2. To turn the script off everywhere at once, delete it: open Site details from your script on the home page (or, if you signed in, the script's page in your dashboard), press Delete this script… and confirm with Yes, delete. If the tag stays on a page, the live server refuses it: nothing is shown, and nothing is kept on our servers.

Let your AI agent do it

When your HTML lives in a project folder an agent can edit, Claude Code, Cursor or Codex can do this for you. Copy the prompt at the top of this guide with Copy prompt for your AI agent: it points the agent at https://whoisbrowsing.com/SKILL.md, and when this browser already has a script, it hands the agent that script, so no second one is made. The agent adds the tag to each page or your shared include, and gives you a watch link. See install with an AI agent.

See who is on your website, right now

Type your website, paste one line, and watch your visitors live. No account needed.

Free · Under 4 KB · No cookies on your visitors · No data stored about your visitors