PeumeAPI

Ads

Update a tracking site

Changes the site's name, domains, consent mode, custom subdomain or own-domain path. Send at least one field.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/update-a-tracking-site \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "siteId": "your siteId"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: update-a-tracking-site.

Parameters

siteIdRequiredstring
namestring
pixelsarray

The ad pixels the tag loads once consent allows, up to 20, one Microsoft UET tag at most. `null` or `[]` removes them.

consentModeBridgeboolean

Write the site's consent banner into Google Consent Mode v2: a denied default in the EEA, UK and Switzerland where the page sets none, then each update.

domainsarray

Hosts allowed to send events, such as `brand.com`. Events from any other origin are dropped.

consentModeobject

consentMode

customHostnamestring

A subdomain of one of the site's domains, never the domain itself. `null` removes it.

proxyPathstring

The path your server forwards to the collector, such as `/zt`. `null` removes it.

googleTagIdsarray

Google tag ids such as `GTM-XXXXXXX`, `G-XXXXXXXXXX` or `AW-XXXXXXXXXX`, up to 10. `null` or `[]` removes them.

Start free · $1 of calls included

Every API your business needs. One key.

7,267 data and AI APIs behind one key, with backup sources built in.