create_site
Register a domain in Gizmo Analytics and retrieve the install snippet for tracking, without proceeding to full installation.
Instructions
Register a domain in Gizmo and return the install snippet. For first-time install asks ('add analytics', 'install Gizmo', 'set up tracking'), prefer setup_analytics_for_site — it bundles this call + the paste target + next-step suggestions in one response. Use create_site directly when the user only wants the site row created (e.g. 'add foo.com to my Gizmo workspace without installing yet') or when integrating from another tool that's already orchestrating its own install flow. Pass the framework matching the user's project (next/react/vite/remix/astro/nuxt/sveltekit/html). Returns site row + install snippet + privacy_policy reminder + optional badge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain you want to track (e.g. 'acme.com'). Apex domain preferred — Gizmo collects events for the whole hostname. | |
| framework | No | Web framework of the user's project. Detect from package.json + config files: next.config.* → next, nuxt.config.* → nuxt, svelte.config.* → sveltekit, astro.config.* → astro, remix.config.* or @remix-run/* → remix, vite.config.* → vite, otherwise react or html. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| public_key | Yes | ||
| public_key_prefix | Yes | ||
| public_key_freshly_minted | Yes | ||
| snippet | Yes | ||
| note | Yes | ||
| privacy_policy | Yes | ||
| badge | Yes |