Documentation
APIAPI reference

Settings

Read and update a site's tracking, privacy, and sharing settings, and get its tracking script.

GET/api/v1/sites/{siteId}/settings/tracking

Get tracking settings

Returns what the tracking script records for the site: query strings, hashes, Web Vitals, outbound links, tracking strength, allowed domains, and excluded paths.

Scopessite_config:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Responses
PATCH/api/v1/sites/{siteId}/settings/tracking

Update tracking settings

Updates the tracking settings. Send only the fields to change. The tracking script picks up the change on its next load.

Scopessite_config:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Request bodyapplication/json
trackQueryboolean
trackHashboolean
trackWebVitalsboolean
autoTrackOutboundLinksboolean
trackingStrengthstring

How visitors are identified: strong, smart (default), or weak. See the tracking settings guide.

Allowed"strong""smart""weak"
allowedDomainsstring[]

Hostnames allowed to send data. Empty allows the site's own domain.

excludedPathsstring[]

Path patterns that are never recorded.

Responses
GET/api/v1/sites/{siteId}/settings/privacy

Get privacy settings

Returns the site's privacy settings, including Do Not Track handling and EU mode. IP anonymization, daily visitor tokens, and the retention period are fixed and returned for reference.

Scopessite_config:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Responses
PATCH/api/v1/sites/{siteId}/settings/privacy

Update privacy settings

Updates whether Do Not Track is respected and whether EU mode is on. Send only the fields to change.

Scopessite_config:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Request bodyapplication/json
respectDoNotTrackboolean
euModeboolean
Responses
GET/api/v1/sites/{siteId}/settings/sharing

Get sharing settings

Returns whether the site's public dashboard is enabled and its slug.

Scopessite_config:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Responses
PATCH/api/v1/sites/{siteId}/settings/sharing

Update sharing settings

Enables or disables the public dashboard, or changes its slug. Send only the fields to change.

Scopessite_config:write
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Request bodyapplication/json
publicEnabledboolean
publicSlugstring | null
Responses
GET/api/v1/sites/{siteId}/settings/tracking-script

Get tracking script

Returns the tracking script URL and an HTML snippet to paste into the site's pages.

Scopessite_config:read
Path parameters
siteIdstringrequired

ID of the site (see List sites).

1–256 chars
Responses