Real-time website analytics

Know exactly who
is on your website.

TheWebstats gives you simple, instant website statistics — new vs returning visitors, live presence, traffic sources and more. No jargon. No complexity and free.

Live on site
14
right now
Visitors today
1,847
↑ 12% vs yesterday
New visitors
63%
First-time arrivals
Returning
37%
Know the way back
Top source
Organic Search
48% of traffic
Avg. active time
3m 42s
↑ 8% this week
Visitor counter
Hits 00042
embeddable badge
Reports
Insightful Analytics
Sent every Monday, 9am
Everything you need

Analytics that actually make sense

Every metric is explained in plain language. If your mum can read it, it's ready — plus a live chat widget so you can talk to visitors while they're still on the page.

New vs Returning Visitors

Each visitor gets a permanent anonymous ID. See exactly how many people are discovering you for the first time versus loyal regulars who keep coming back.

Live Presence Detection

Know who is actively on your page right now, who has gone idle, and who has lost their connection — updated every 30 seconds via heartbeat pings.

Traffic Source Tracking

Understand whether visitors arrive from Google, social media, direct links, or paid campaigns — with full UTM parameter support built in.

Device & Browser Breakdown

See the split between mobile, tablet, and desktop visitors. Know which browsers and operating systems your audience actually use.

Real Engagement Time

Don't just count page views — measure how long visitors are genuinely active. Idle time, hidden tabs, and offline periods are excluded automatically.

Privacy First

No personal data is ever collected. Visitor IDs are anonymous UUIDs stored in the browser. Do Not Track headers are fully respected.

Public Visitor Counter

Show off your traffic with a live hit counter badge. One line of code, three themes, three sizes — proof of popularity right on your page.

Live Chat Widget

Paste a single script tag anywhere on the page. No plugins, no build step — your live chat widget is up in under a minute.

Auto / Force Online / Offline

Auto shows online only while you're at the dashboard. Force Online keeps chat open 24/7. Force Offline switches every site to the contact form instantly.

WhatsApp Handoff

Offline? Visitors get a "Chat with us on WhatsApp" button linked to your number — you never lose a lead outside business hours.

File & Image Attachments

Visitors can attach screenshots, receipts and documents directly in the chat thread — no separate email required.

Multi-Site Chat Inbox

Register up to 5 websites, each with its own embed code, and manage every conversation from a single unified dashboard.

Full Visitor Context in Chat

See country, city, IP, the exact page URL and a live screenshot preview with every chat — never guess who you're talking to.

Live Chat

Talk to your visitors before they leave

You already know who's on your site. Now you can chat with them — live, in real time, with one line of code. WhatsApp handoff and file attachments included.

  • One-line script tag — paste it once, chat everywhere
  • WhatsApp & email handoff for visitors when you're offline
  • File & image attachments straight in the chat thread
  • Auto, Force Online & Force Offline modes across every site
  • Visitor location, IP, current page & live screenshot preview
  • Unified inbox — every conversation, every site, one place
Add Live Chat Free →
Chat with us Online
Hi! Do you ship to Ireland? 🇮🇪
Yes — 2–3 business days 🚚
📎 order-receipt.pdf
Type a message…
🔄 Auto
🟢 Force Online
⚪ Force Offline
Set once — applies instantly across every site you own.
Dead simple setup

Live in under 2 minutes

One script tag. That's it. No plugins, no servers to configure, no dashboards to learn.

Add one script tag

Copy the analytics script into your HTML page, just before the closing </body> tag.

Set your site ID

Update the siteId in the config to identify your website in the dashboard.

Data flows instantly

Every pageview, visitor ID, live status, and exit event starts posting to your endpoint automatically.

One copy-paste install

Drop it in. Done.

The entire analytics engine is a single self-contained JavaScript file. No npm, no build step, no dependencies.

  • Visitor identity with persistent anonymous UUID
  • New vs returning classification on every visit
  • Live / idle / offline presence detection
  • Page load performance timing
  • UTM campaign parameter capture
  • Graceful fallback: Beacon → Fetch → XHR
<!-- Add before </body> -->
<!-- Get YOUR_API_KEY for free from your dashboard after signing up -->
<script
  src="https://www.thewebstats.com/js/wsx.js"
  data-site="YOUR_API_KEY"
  async>
</script>

// That's it — page views, sessions, presence & device data start
// flowing in automatically. Optional public API for custom events,
// callable from your own scripts once the tag above has loaded:
visitorAnalytics.track(
  "signup_click"
);
visitorAnalytics.getPresence();
visitorAnalytics.getVisitor();
One copy-paste install

Live chat, live in one line

The chat widget is a single embeddable script. Grab your unique key from Live Chat → Manage sites, paste it anywhere on the page, and the chat bubble appears instantly.

  • Real-time messaging, no page refresh
  • Offline contact form with WhatsApp fallback
  • File & image attachment support built in
  • Fully responsive chat bubble widget
  • Works alongside the analytics script above
<!-- Add anywhere on the page -->
<!-- Get YOUR_CHAT_KEY free from Live Chat → Manage sites -->
<script
  src="https://www.thewebstats.com/chat_widget.js?key=YOUR_CHAT_KEY"
  async>
</script>

// That's it — the chat bubble appears bottom-right,
// with WhatsApp handoff and attachments enabled by default.
// Manage Auto / Force Online / Force Offline anytime
// from the Live Chat dashboard — no code changes needed.
Show off your traffic

Add a public visitor counter

Want a live hit count badge visitors can actually see? Paste one div and one script tag — pick a theme and size, and it updates on every page load automatically.

  • Live cumulative hit count, no page reload needed
  • Themes: dark, light, neon
  • Sizes: small, medium, large
  • Domain-locked to your API key for safety
<!-- Place anywhere on the page -->
<div id="bv-counter"></div>
<script
  src="https://www.thewebstats.com/tracker.php?api_key=YOUR_API_KEY&theme=dark&size=medium"
></script>
Real users

People who actually get it now

Small shops, agencies and startups on every continent, using analytics and live chat to actually talk to their visitors.

Start understanding — and talking to — your visitors today.

Free analytics plus a free live chat widget with WhatsApp handoff. Works on any website, live in minutes.

Get the Script →