Projects
Manage Clics projects with the TypeScript SDK: create sites, list workspaces, and update tracking settings.
A project is the top-level container for a tracked website or app in your Clics workspace. Each project has its own tracking ID, goals, funnels, and analytics data.
Use clics.projects when you need to provision sites programmatically, for example in onboarding flows, internal admin tools, or CI scripts that sync workspace configuration.
What a project includes
| Field | Description |
|---|---|
id |
Unique project identifier (used in stats queries and tracking setup) |
name |
Display name shown in the dashboard |
websiteUrl |
Primary domain (e.g. example.com): schemes and paths are stripped |
allowLocalhost |
Whether localhost/dev traffic is accepted |
status |
active, deleting, or error |
Typical workflow
- Create a project with
createProjectand note the returnedid - Install the tracking snippet using that project ID
- Verify data with
queryStats - Optionally update settings (
allowLocalhost, renamed domain) withupdateProject
Goals and funnels are always scoped to a project. List every project in a workspace with listProjects when building multi-site automation.
Methods
Access project methods via clics.projects.
Related
- Dashboard overview: manage projects in the UI
- Authentication: API keys are workspace-scoped
- Pagination: cursor-based listing for
listProjects