Settings
Read and update a site's tracking, privacy, and sharing settings, and get its tracking script.
Returns what the tracking script records for the site: query strings, hashes, Web Vitals, outbound links, tracking strength, allowed domains, and excluded paths.
siteIdstringrequiredID of the site (see List sites).
Updates the tracking settings. Send only the fields to change. The tracking script picks up the change on its next load.
siteIdstringrequiredID of the site (see List sites).
trackQuerybooleantrackHashbooleantrackWebVitalsbooleanautoTrackOutboundLinksbooleantrackingStrengthstringHow visitors are identified: strong, smart (default), or weak. See the tracking settings guide.
"strong""smart""weak"allowedDomainsstring[]Hostnames allowed to send data. Empty allows the site's own domain.
excludedPathsstring[]Path patterns that are never recorded.
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.
siteIdstringrequiredID of the site (see List sites).
Updates whether Do Not Track is respected and whether EU mode is on. Send only the fields to change.
siteIdstringrequiredID of the site (see List sites).
respectDoNotTrackbooleaneuModebooleanReturns whether the site's public dashboard is enabled and its slug.
siteIdstringrequiredID of the site (see List sites).
Enables or disables the public dashboard, or changes its slug. Send only the fields to change.
siteIdstringrequiredID of the site (see List sites).
publicEnabledbooleanpublicSlugstring | nullReturns the tracking script URL and an HTML snippet to paste into the site's pages.
siteIdstringrequiredID of the site (see List sites).