Create a website in Umami
umami_create_websiteRegister a new website in Umami to receive a website ID and tracking snippet, enabling analytics for any client or project.
Instructions
Register a new website for tracking in Umami. This is the first step in onboarding a client or project: it returns a website ID that goes into the tracking script, and that every stats tool in this server uses.
Args:
name (string, required): Display name for the website.
domain (string, required): The domain being tracked, e.g. 'example.com'. No protocol.
team_id (string, optional): Create the website under a team instead of your personal account. Use umami_list_teams to find the ID.
id (string, optional): Force a specific UUID for the website, for example to match an ID reserved elsewhere.
Returns: JSON shape: { "id": string, "name": string, "domain": string, "team_id": string | null, "created_at": string, "tracking_snippet": string }
Examples:
"Set up tracking for the new client site" -> name="Walker's Land Services", domain="walkerslandservices.com"
"Add this under the Gradeline team" -> name="Gradeline", domain="gradeline.info", team_id=""
Error handling:
Fails if a website with the same forced 'id' already exists.
Not available on Umami Cloud in read-only API-key mode without appropriate account permissions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Force a specific UUID for the website. | |
| name | Yes | Display name for the website. | |
| domain | Yes | Domain being tracked, e.g. 'example.com'. No protocol or path. | |
| team_id | No | Create under this team instead of your personal account. |