Skip to main content
POST
Generate a tracking script

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Body

application/json

Tracking script generation parameters

internal_identifier
string
required

The identifier for the tracking script as used in your system. Should be unique for every generated tracking script

Example:

"my-tracking-script"

description
string

A description for the tracking script

Example:

"This is a tracking script for my website"

domains
string[]

Domains to whitelist for this tracking script. Only traffic from these domains (and their subdomains) is accepted.

spotter_enabled
boolean

Whether browser Spotter calls are accepted for this tracking script, from its domains only. Requires Spotter access on your account (contact support to enable it) and at least one domain. Each identified visitor IP counts as one reveal per monthly window. Defaults to false.

Example:

false

Response

Tracking script generated successfully

success
boolean
Example:

true

data
object[]