https://api.clakta.com/v1/projects/{idOrSlug}/scriptsCreate a tracking script for a project. Requires an API key with `projects.write`. Only `name` is required. By default, the script accepts events from any domain and enables all four automatic tracking options.
Send your API key as a bearer token in the Authorization header.
See Authentication for how to create and scope an API key.
idOrSlugThe project ID (with the proj_ prefix) or slug.
namedomainstrackPageViewsdefault: truetrackClicksdefault: truetrackScrollsdefault: truetrackFormSubmissionsdefault: trueThe created script
idThe script's data-clakta-id.
namedomainstypeAllowed values:webiosandroid
trackPageViewstrackClickstrackScrollstrackFormSubmissionslastEventAtcreatedAtupdatedAt