Website analytics

Change a site's settings

analytics_update_site · Changes data · Markdown

Changes a site's name, time zone, traffic alert, weekly summary, JavaScript errors and whether where leads came from is kept with them.

Free

This tool costs nothing to call.

An example

Ping me when more than 50 people are on the website at the same time, and send me a summary every Monday.

Your agent callsanalytics_update_siteFree

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",
  "spike_alert_visitors": 50,
  "weekly_summary": true
}
What comes back
{
  "site": {
    "site_id": "33b532f0-ee95-48d6-9ab9-2979147f4ca0",
    "domain": "halversoncycle.example",
    "name": "Halverson Cycle & Repair",
    "time_zone": "America/Los_Angeles",
    "snippet": "<script defer src=\"https://cncto.co/a.js\" data-site=\"33b532f0-ee95-48d6-9ab9-2979147f4ca0\"></script>",
    "events_this_month": 13,
    "clicks_this_month": 0,
    "allowance_per_month": 100000,
    "extra_blocks": 0,
    "monthly_usd": "$3.00",
    "goals": [],
    "events": [],
    "spike_alert_visitors": 50,
    "weekly_summary": true,
    "track_errors": false,
    "keep_sources": true,
    "created_at": "2026-10-14T08:00:00+00:00"
  }
}

Use it when

The business wants an alert when many people are on the site at once, a summary every Monday, or the site's JavaScript errors.

What it does

Its name, the time zone its days follow, a traffic alert (the analytics.traffic_spike event when this many people are on the site within 5 minutes, at most once in 6 hours; 0 turns it off), a weekly summary (the analytics.weekly_summary event every Monday morning), whether JavaScript errors are kept (track_errors, off by default) and whether where a lead first came from is kept with their contact (keep_sources, on by default). Events reach Slack, Teams, webhooks and the rest through notify_subscribe, and bots through account_events.

What comes back

The site with its settings as saved, including spike_alert_visitors, weekly_summary, track_errors and keep_sources. 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.
namestringUp to 120 characters.
time_zonestringUp to 64 characters.
spike_alert_visitorsinteger0 to 1,000,000.
weekly_summaryboolean
track_errorsboolean
keep_sourcesboolean

The call

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

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

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.
invalid_input400time_zone is not a zone name.Send a zone like America/Los_Angeles.

Give this to your agent.

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