Skip to main content
PATCH
Update a tracking script

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Path Parameters

trackingScriptId
string
required

The ID of the tracking script to update

Example:

"12345"

Body

application/json

Tracking script update parameters. Provide at least one of active, domains or spotter_enabled; omitted fields are left unchanged.

active
boolean

Boolean to deactivate or reactivate the tracking script

Example:

"false"

domains
string[] | null

Replaces the domains whitelisted for this tracking script. Only traffic from these domains (and their subdomains) is accepted. An empty array or null removes the restriction.

spotter_enabled
boolean

Whether browser Spotter calls are accepted for this tracking script, from its domains only. Enabling requires Spotter access on your account (contact support to enable it) and at least one domain, so domains cannot be emptied while this is true. Each identified visitor IP counts as one reveal per monthly window. A change can take up to 10 minutes to apply.

Example:

true

Response

Tracking script updated successfully

success
boolean
Example:

true

data
object[]