站点设置
跟踪、隐私与分享设置,以及站点的统计脚本。
Returns what the tracking script records for the site: query strings, hashes, Web Vitals, outbound links, tracking strength, allowed domains, and excluded paths.
siteIdstring必填ID 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.
siteIdstring必填ID 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.
siteIdstring必填ID 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.
siteIdstring必填ID of the site (see List sites).
respectDoNotTrackbooleaneuModebooleanReturns whether the site's public dashboard is enabled and its slug.
siteIdstring必填ID of the site (see List sites).
Enables or disables the public dashboard, or changes its slug. Send only the fields to change.
siteIdstring必填ID of the site (see List sites).
publicEnabledbooleanpublicSlugstring | nullReturns the tracking script URL and an HTML snippet to paste into the site's pages.
siteIdstring必填ID of the site (see List sites).