get_tracking_snippet
Get the exact tracking snippet and script URL for any site, ready to install verbatim. Use it to add cookieless analytics tracking without modifying the code.
Instructions
The script tag to install on a site, and the url it loads. Response: {"site_id":123,"type":"default","script_url":"https://...","snippet":"<script ...>"}. Install snippet verbatim; do not rebuild a tag from script_url. A hobby site's snippet also carries data-id, which is the only place the counter in its bundle reads the site id. Read-only: it reports the code, it does not install or verify anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | site_id from list_sites. | |
| type | No | Optional bundle variant; omit for the default script. |