Change a site's settings
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.
{
"site": "halversoncycle.example",
"spike_alert_visitors": 50,
"weekly_summary": true
}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
| Name | Type | What it is |
|---|---|---|
siteRequired | string | The site's domain (e.g. halversoncycle.example) or its site_id. 4 to 253 characters. |
name | string | Up to 120 characters. |
time_zone | string | Up to 64 characters. |
spike_alert_visitors | integer | 0 to 1,000,000. |
weekly_summary | boolean | |
track_errors | boolean | |
keep_sources | boolean |
The call
Over MCP, call analytics_update_site on https://api.conecto.chat/mcp/analytics. Over REST:
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.
| Code | When | What to do |
|---|---|---|
not_found404 | No site the business counts has that domain or site_id. | Call analytics_list_sites and use a domain from it. |
invalid_input400 | time_zone is not a zone name. | Send a zone like America/Los_Angeles. |
More Website analytics tools
All 18 tools- Count a website's visits
analytics_add_siteStarts counting visits to a website, without cookies, and returns the snippet for its pages.$3.00 a call - Get install steps
analytics_installStep-by-step instructions to put the counting script on a site: any html, Shopify, WordPress, Webflow or Google Tag Manager.Free* - Read a site's stats
analytics_statsA site's visitors, pages, sources, countries, devices, events, goals and speed for a period, against the period before.Free* - Break an event or goal down
analytics_breakdownOne event or goal by a prop or by where its visits came from, with conversions, conversion rate and revenue.Free* - Who is on a site now
analytics_realtimeVisitors in the last 5 minutes, and the pages people looked at in the last 30.Free* - Set a site's goals
analytics_set_goalsSets the conversions a site counts: pages reached or events, replacing its goals; with notify, the agent hears of each one as it happens.Free - Define events without touching the site
analytics_define_eventsDefines events from what the script already sees (clicks, pages, scrolling, time on a page, props), with nobody editing the site.Free - Track events from outside the site
analytics_trackRecords events that happen away from the site, like orders, deals won or renewals, tied to the visit that led to them when it can be found.Free
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md