Real-time analytics + live chat for lead generation

Know who's on your website, turn them into leads & sales.

See who is on your site right now, where they came from, and chat or WhatsApp them before they leave. Free and privacy-friendly.



TheWebstats follows every step - 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
Visits → Leads → Revenue

Stop just counting visitors. Start turning them into customers.

Traffic only pays when visitors act. TheWebstats is built around that idea: it shows you which visitors deserve your attention, which channels send them, and gives you live ways to reach them before they leave - so the traffic you already have turns into enquiries, bookings and sales.

👀 Visit 💬 Conversation 📥 Lead 💰 Sale
1

Spot the right visitors

See who is on your site now, which page they are reading and whether they are new or returning. A returning visitor on your pricing page is a warm lead.

2

Know what brings leads

Source and UTM tracking show whether Google, social or ads send them. Add a one-line custom event for enquiries and bookings.

3

Catch the lead

Chat live while they browse, with their page and location in view. Out of hours, they get a WhatsApp button, so no lead is lost.

4

Fix what leaks sales

Device and engagement data show where visitors drop off. The free Web Analyzer flags SEO and speed issues that cost you sales.

How your website earns more with it

TheWebstats does not sell for you - it shows you where visitors come from, what they do and how to reach them. The extra income comes from acting on it:

Start Turning Visits into Leads →
  • Spend ad budget only on the channels that bring real enquiries
  • Reply to ready-to-buy visitors while they are on pricing or checkout
  • Capture out-of-hours leads with the WhatsApp handoff
  • Fix the mobile and slow-page problems that lose sales
  • Show proof of popularity with the public visitor counter
  • Get a weekly report to see if your visit-to-lead rate is climbing
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.

MCP Server for AI Assistants

Connect Claude, ChatGPT, Cursor or any MCP-compatible AI to your stats. Ask plain-English questions about traffic and chats through a free, read-only, tenant-locked API key.

Ask AI - Chat With Your Analytics

Pick a site and a time frame, then ask in plain English which sources convert and where visitors drop off. Runs on your own AI account, with Lite, Standard and Deep data depth to control cost.

Secure AI API Keys

Bring keys from OpenAI, Anthropic, Gemini, Groq and more. Every key is encrypted at rest, shown only as a masked hint, and usable only by you - disable or delete it any time.

Web Analyzer - Free Site Health Scanner

Run a one-click SEO, security, performance and accessibility scan of any site you manage. Get an instant A-F grade, a category breakdown, and plain-English fixes for every issue found.

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 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.
Full Dashboard

One dashboard. Every metric, every chat, every report.

Analytics, live chat and scheduled reports all live in the same place - no switching tools, no separate logins for your team.

  • Real-time visitor feed alongside live chat conversations
  • Traffic sources, device breakdown and engagement charts
  • Manage every website you own from one screen
  • Team-friendly - one login, unlimited page views
Open the Dashboard →
Overview
1,284
Visitors today
37
Live now
6
Chats today
4
Sites tracked
Your Weekly TheWebstats Report
reports@thewebstats.com · Every Monday, 8:00 AM
Total visitors8,412
New visitors5,196
Live chats handled63
Top sourceGoogle Search
Automatic Scheduled Reporting

Your stats, delivered - you don't have to log in

Set it once and a summary lands in your inbox on schedule, so you always know how your site is doing without opening the dashboard.

  • Daily, weekly or monthly email reports
  • PDF and CSV export included in every report
  • Send to multiple team members or clients
  • Key metrics highlighted - no digging required
Set Up Reports →
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>
New · Built for AI assistants

Ask your stats. Literally.

TheWebstats ships a free MCP (Model Context Protocol) server, so Claude, ChatGPT, Cursor and any other MCP-compatible AI can answer questions about your traffic, chats and reports in plain English - using a key that only ever sees your own sites.

  • Works with Claude, Cursor, ChatGPT and any MCP client
  • Read-only & tenant-locked - nothing can be created, changed or deleted
  • Ask natural-language questions about traffic, chats & reports
  • Plain REST/JSON API too, for scripts or models that skip MCP
  • Free keys - revocable, expiring and rate-limited for safety
Get your MCP key →
// Add to Claude Desktop, Cursor, or any MCP client config
// Get YOUR_MCP_KEY free from your dashboard → MCP
{
  "mcpServers": {
    "thewebstats": {
      "url": "https://www.thewebstats.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_KEY"
      }
    }
  }
}

// Then just ask, once connected:
// "How many visitors did my site get this week?"
// "Any unread live chats from the last 24 hours?"
Ask AILast 30 days
Which channel brings visitors who actually get in touch?
Organic search sends the most visitors, but newsletter visitors view more pages and reach your contact page more often. Most visitors leave from the pricing page, so try a clearer call to action there.
OpenAIAnthropicGeminiGroq+ more
Illustrative example. Your answers come from your own site's data.
New · Chat with your analytics

Ask AI: plain-English answers from your own website data

Choose a site and a time frame, then ask anything - which sources convert, which pages lose visitors, what changed since last month. Ask AI runs on the AI account you already have, so you stay in control of the model and the cost.

  • Pick a site and period: today, 7 or 30 days, 3 months, or a custom range up to 6 months
  • Lite, Standard or Deep data depth - you decide how many tokens each question uses
  • Knows your business: context is read once from your own website and you can edit it
  • Attach a spreadsheet, PDF, image or document and ask about it next to your stats
  • Every chat is saved - search, rename or delete them any time
Set up Ask AI →

Needs a TheWebstats account and your own AI key. You pay your AI provider directly for the tokens you use.

Security · Bring your own AI key

Your AI API keys, encrypted and under your control

Add keys from the AI platforms you already use - as many as you like. Here is exactly how they are protected.

Encrypted at rest

Every key is encrypted with AES-256-GCM before it is stored. The key list only ever shows a masked hint such as gsk_••••x9Zk.

Only the owner can use it

Revealing, testing or asking with a key is limited to the account that saved it. Admins can manage keys, but cannot reveal or use another customer's key.

Never placed in your browser

Ask AI calls your provider from our server. Revealing a key is a deliberate click, and it hides itself again after 30 seconds.

Safe outbound requests

Calls go only to public https addresses on port 443, with redirects off and the resolved address pinned, so a custom base URL cannot be aimed at internal systems.

Rate-limited, with private history

Per-key and hourly limits help stop runaway usage. Each key keeps its own call history, visible only to you.

Disable or delete any time

Switch a key off instantly or delete it permanently. A disabled key cannot be used for questions.

Good to know: our server can decrypt a key to call your provider for you - that is how Ask AI works. For extra safety, create a dedicated key with a spend limit at your AI provider, and revoke it there whenever you want to cut access completely.

Is my AI API key safe on TheWebstats?

Keys are encrypted with AES-256-GCM before they are stored, shown only as a masked hint, and decrypted on our server only to make a request you started. Only the key's owner can reveal, test or use it, and you can disable or delete it at any time. For extra safety, create a dedicated key with a spend limit at your AI provider.

Which AI platforms can I use with Ask AI?

OpenAI, Anthropic, Google Gemini, Groq, Mistral, Cohere, xAI, DeepSeek, Perplexity, Together AI, OpenRouter, Fireworks AI, Cerebras, NVIDIA NIM and Hugging Face, plus any OpenAI-compatible API with a public https address.

What data does Ask AI send to the AI provider, and who pays for it?

Ask AI sends your chosen provider a compact summary of the site and period you select (totals, top lists and trends) plus a small random sample of events, not your raw database. The Lite depth is the default and uses the fewest tokens. TheWebstats does not resell AI tokens: usage is billed by your AI provider to your own account.

New · Free site health scanner

Web Analyzer: scan your site's SEO, security & speed in seconds

Run a free, passive scan of any site you manage and get an instant A-F grade across four categories - Foundation, Quality, Performance and Security - with plain-English checks you can act on right away.

  • SEO foundation checks - meta tags, headings, canonical tags, sitemap & more
  • Security header, TLS/certificate and tracking-consent checks
  • Performance checks - image sizing, caching, render-blocking assets
  • Every scan saved to history - compare past reports side by side
  • Agency/admin mode - scan every site you manage from one screen
Scan Your Site Free →
Built-in tool, free for everyone

Check your internet speed, right here

Run a real ping, jitter, download and upload test in a full-screen popup without leaving this page - then copy or download a dated report of the results.

  • Accurate ping, jitter, download & upload results
  • Runs long enough for a reliable, repeatable reading
  • Opens instantly in a full-screen popup - one click to close
  • Every test saved server-side as a dated report you can download
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.

Turn the visitors you already have into leads and sales.

Free analytics plus a free live chat widget with WhatsApp handoff - see who is on your site, talk to them live and convert more visits. Works on any website, live in minutes.

Get the Script →

Get TheWebstats on your home screen or desktop - opens instantly, full screen, no app store.