Website analytics

Get install steps

analytics_install · Reads only · Markdown

Step-by-step instructions to put the counting script on a site: any html, Shopify, WordPress, Webflow or Google Tag Manager.

Free*

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

An example

Our shop runs on Shopify. How do I add the visitor stats, with sales?

Your agent callsanalytics_installFree*

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",
  "platform": "shopify"
}
What comes back
{
  "site": "halversoncycle.example",
  "platform": "shopify",
  "snippet": "<script defer src=\"https://cncto.co/a.js\" data-site=\"576e9320-e725-44af-a262-7210ef658a5f\"></script>",
  "steps": [
    "In Shopify, open Online Store, then Themes. Next to the live theme, open the ... menu and pick Edit code.",
    "Open layout/theme.liquid, paste the snippet just before </head> and save. This counts the shop's pages."
  ],
  "pixel": "// Conecto: counts the shop's funnel for halversoncycle.example: products viewed, carts, checkouts and purchases.\nconst SITE = '576e9320-e725-44af-a262-7210ef658a5f';\nconst send = (name, event, props, money) => {\n  const page = event.context.document;\n  const body = { s: SITE, n: name, u: page.location.href, r: page.referrer || null,\n    w: event.context.window.innerWidth, p: props || null };\n  if (money && money.amount != null) body.$ = { a: Number(money.amount), c: money.cu…"
}

Use it when

Someone has to add the snippet to the site, or a shop should count carts and purchases.

What it does

How to put the counting script on a site, step by step for where it runs: html (any site), shopify (the theme, plus a custom pixel that counts products viewed, carts, checkouts and purchases with revenue), wordpress, webflow or google_tag_manager.

What comes back

The snippet, the steps for the platform, and for Shopify the custom pixel that counts products viewed, carts, checkouts and purchases with revenue. 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.
platformstringOne of: html,shopify,wordpress,webflow,google_tag_manager. Default: html.

The call

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

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

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_input400platform is not html, shopify, wordpress, webflow or google_tag_manager.Pick one of them; html works on any site.

Give this to your agent.

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