Set up Clarvivo analytics
setup_analyticsDetects the app framework, creates or reuses a Clarvivo project, and returns the exact code edit to add analytics.
Instructions
Detect this repository's framework, reuse or create the Clarvivo project for a domain, and return the exact file and code edit. Use this first when asked to add analytics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Project name; defaults to a readable name derived from domain | |
| domain | Yes | Production hostname, for example example.com | |
| framework | No | Optional override such as next-app, next-pages, vite, astro, sveltekit, nuxt, remix, gatsby, docusaurus, or static-html |