googleanalytics.account API
Connect a Google Analytics account to this workspace: returns a hosted link where a Google account with a role on the property signs in and approves access (no password or token ever reaches RouterGrowth), then reports the connection's status. Give each connection a name: a workspace can hold several, one per Google account, which is how an agency reads each client's property. Without a name it reports what is already connected instead of starting a new connection. With disconnect:true it removes the named connection. RouterGrowth only reads Analytics; the approval page asks for more than that for now.
Google Analytics:
all inputs ✓
✓ marks a combination proven with a real provider call. Others are wired and unit-tested; their first live run verifies them.
| Provider | Status |
|---|---|
Google Analytics |
live |
Unit: per_call · unmatched results billed: no
Free: connecting, status checks, reconnect links and disconnecting cost nothing, and a connection has no monthly fee.
The exact quote is returned by /v1/inspect before every call and held with headroom on execution. The quote is the price floor: if the provider's actual cost overruns it, the run bills the overrun at the same rate, never above the hold. The unused part of every hold is released.
curl https://api.routergrowth.com/v1/run \ -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \ -d '{ "capability": "googleanalytics.account", "input": { }, "routing": {"provider": "auto"} }'
{
"properties": {
"disconnect": {
"default": false,
"description": "Remove the named connection (or the only one when no name is given). Nothing changes in Analytics itself",
"type": "boolean"
},
"name": {
"description": "Label for this connection inside your workspace, e.g. \"main\" or \"client-acme\". Omit it to check what is already connected; give one to connect a new account or to check, reconnect or disconnect that one",
"type": "string"
},
"return_url": {
"description": "A page of the RouterGrowth app to land on after the approval. Leave it out anywhere else: the approval then ends on the connection provider\u0027s own confirmation page",
"type": "string"
}
},
"type": "object"
}
name · account_id · status · connected · connect_url · google_account · accounts · count · next_step