PATCH /v1/tenants/{product_slug}/script-config sets pages_to_ignore — the URL path patterns on which the tracking script does not run at all — for your own tenant or a direct child tenant. Before this endpoint, this could only be set by hand in the dashboard’s Script Settings page. Call this right after Create Tenant — or pass the same field as script_config on the create call itself — to exclude known non-prospect paths (an internal admin subpath, a tenant portal, a careers page) from the very first pageview.
Only pages_to_ignore is written by this endpoint; omit it and nothing changes.
Endpoint
Path Parameter
string
required
Your own tenant’s slug, or a direct child tenant’s slug.
Request Body
string[]
Regex patterns matched against
window.location.pathname in the browser. A visitor’s page fully skips the tracking script — no session, no identification, no credits spent — if it matches any pattern in this list. Replaces the tenant’s entire list; this is not additive.Every pattern is validated with a regex compile check before being saved. A pattern that fails to compile returns
400 rather than being written and silently breaking the tracking script for every visitor on the tenant’s site. Because the tracking script runs in the browser, the check only catches common breakages (unbalanced brackets or parentheses) and doesn’t guarantee the pattern behaves exactly as intended once evaluated by the browser’s regex engine — test patterns carefully before relying on them in production.Example Request
Response
Returns the tenant’s script configuration after the update, same shape as Get Script Config:Required Scope
Requirestenants:write.