Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

manage_tracking_sites

Set up website tracking

writes listed directly

Website tracking for the workspace, chosen with `action`. list: the sites with status, allowed origins, consent mode and when an event last arrived. create: register the person's website and get the two-line snippet to paste before </head>, with install steps. update: change name, domain, allowed origins (https://www.example.com form), consent mode (required: nothing is stored before the visitor consents; optional) or pause it. test: send a test event through the pipeline and show what recently arrived, to check an installation; it creates no lead.

Changing anything needs the right to manage integrations. The signing secret for server-to-server webhooks is never returned here: the person copies it in the app at app_url. Never tell the person tracking works until test or list shows events arriving from their site.

Arguments

NameTypeNeededWhat it is
action string yes One of: list, create, update, test
site_id string no update and test: the site id.
name string no create (required), update: a name people recognize, for example "Main website".
domain string no The website's domain, for example example.com. Its https origins are allowed by default.
allowed_origins array of string no Origins that may send events, each like https://www.example.com (no path, no wildcard). Replaces the list.
consent_mode string no required (default): nothing is stored in the browser before consent.One of: required, optional
status string no update only: paused stops accepting events.One of: active, paused
request_key string no create only: any unique string, so a retry does not register the site twice.

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It is in the list every assistant sees when it connects.

How tools behave: confirmation, review links, errors and limits

create_tracking_link · get_landing_page · list_landing_pages · list_tracking_links · manage_tracking_links · request_landing_page_publication · save_landing_page