Website analytics

Who is on a site now

analytics_realtime · Reads only · Markdown

Visitors in the last 5 minutes, and the pages people looked at in the last 30.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

We just posted the tune-up special on Instagram. How many people are on the site right now?

Your agent callsanalytics_realtimeFree*

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "site": "halversoncycle.example"
}
What comes back
{
  "site": "halversoncycle.example",
  "visitors_now": 4,
  "pages_last_30_minutes": [
    {
      "page": "/bikes/tabor",
      "visitors": 3
    },
    {
      "page": "/",
      "visitors": 2
    }
  ]
}

Use it when

Someone asks who is on the website right now, say just after a post or a newsletter went out.

What comes back

How many visitors were on the site in the last 5 minutes, and the pages viewed in the last 30 with the visitors on each. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
siteRequiredstringThe site's domain (e.g. halversoncycle.example) or its site_id. 4 to 253 characters.

The call

Over MCP, call analytics_realtime on https://api.conecto.chat/mcp/analytics. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/analytics_realtime \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"site":"halversoncycle.example"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No site the business counts has that domain or site_id.Call analytics_list_sites and use a domain from it.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md