update_tracking_settings
Update a site's tracking script features by replacing the full feature selection. Send the complete list of feature IDs to enable; omitted features are disabled.
Instructions
Set which tracking features the site's script includes. REPLACES the whole selection: send every feature you want enabled, not just the new one — anything omitted is turned off. Call get_tracking_settings first for the valid ids. Rebuilds and republishes the script, so the change reaches visitors after the CDN cache clears.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | site_id from list_sites. | |
| features | Yes | Feature ids to enable, from get_tracking_settings. The complete list, not a delta; [] disables every optional feature. |