Add a site
You need to be an owner or admin of at least one workspace. Your plan’s site limit applies: the trial includes 2 sites, Starter 10, and Growth and Scale have no limit (see plans and limits).1
Open the add site form
Select Add site on your list of sites, in the site switcher, or in the command palette. The form opens at crispstats.com/app/new.
2
Fill in the site
- Domain: the domain of your site, like
example.com. A pasted URL is reduced to its domain, and a leadingwww.is dropped. Subdomains are counted too. - Site name: how the site appears in your list. It is filled in from the domain, for example
Acmeforacme.com, until you type your own. Clear it to use the domain itself. At most 80 characters. - Timezone: days in your reports start and end in this timezone.
- Workspace: shown only when you are an owner or admin of more than one workspace. Everyone in it can open the site.
3
Install the script
Select Add site. CrispStats creates the site with a public key that starts with
cs_pk_ and shows the script tag for it. The quickstart covers the install and the first-visit check.Your plan's site limit is reached. Upgrade to add another site. and offers Open billing. If you are not an owner or admin of any workspace, the form explains that only owners and admins can add sites.
Where site settings live
Open a site, then Settings in the sidebar. Each tab has its own address, so you can link straight to one.
Below the tabs, Team and API keys opens the workspace page of the workspace that owns the site. Goals are created and edited on the site’s Events page. Addresses of tabs that moved keep working:
settings/goals opens the Events page, settings/widgets the widgets on Sharing and widgets, and settings/team and settings/api-keys the workspace page.
Bot filtering, excluded paths and IP addresses have their own guides: bot filtering and exclude traffic. Persistent visitors is covered in persistent visitors.
Change site details
The Site details group on the General tab holds five fields. Change any of them, then select Save changes. Discard puts back the saved values.
Errors appear next to the field, for example
Enter a domain like example.com, without a path. The collector caches site settings for up to a minute, so a change to the domain or hostnames takes effect within about a minute.
How the domain and hostnames decide what is counted
The collector compares the hostname of each page with the site’s domain and its additional hostnames. A leadingwww. is ignored on both sides.
- No additional hostnames: events from the domain and every subdomain of it are counted. With the domain
example.com, visits toexample.com,www.example.comandblog.example.comall count. - One or more additional hostnames: events from the domain itself and from the exact hostnames in the list are counted. Other subdomains of the domain are no longer accepted, so add each one you use.
shop-example.net, add that hostname here so its visits count.
By default the script ignores pages on
localhost, 127.0.0.1 and file://, whatever the hostname list says. To track them, add data-allow-localhost to the script tag. See localhost and testing.Rotate the public key
The public key is thecs_pk_ value in your script tag’s data-site attribute. It is safe to publish, because all it can do is send events to this site. Rotate it when someone is sending events you do not want.
1
Open the public key
Go to Settings, then Tracking code, and scroll to Public key. You can copy the current key here.
2
Rotate it
Select Rotate key and confirm. CrispStats issues a new key and shows it in place of the old one.
3
Replace the key everywhere
Update every place that uses the old key: the script tag, server-side event code, and the live visitor badge if you use it. Deploy the change.
Delete a site
Deleting a site removes the site, its settings, goals, funnels and alerts, and every event recorded for it. The tracking snippet stops counting. This cannot be undone.1
Export what you want to keep
Download your data from Settings, Import and export first. See CSV export and raw events.
2
Open the danger zone
Go to Settings, then Danger zone, and select Delete site.
3
Confirm with the domain
Type the site’s domain exactly as shown, for example
example.com, and confirm. The server checks the typed domain again, so a mismatch is refused with Type example.com exactly to confirm.Workspaces
A workspace owns sites, members, API keys and the subscription. Everyone in a workspace can open each of its sites, with the permissions of their role.- When you sign up, CrispStats creates a workspace for you, named after you (for example
Alex's workspace), with you as its owner and with a 14-day free trial, no card required. Each person gets one trial. - You join other workspaces by accepting an invitation.
- Plans and limits apply per workspace, not per site or per person. The Billing screen shows one workspace at a time and has a selector when you belong to several.
Next steps
Invite your team
Add people to the workspace and choose what each role can change.
Exclude traffic
Keep your own visits, admin pages and test traffic out of the numbers.
Plans and limits
See how many sites, seats and events each plan includes.