Updated
View as MarkdownReduce usage
Plans count events a month: page views plus custom goals. Each new payment that twelvebit credits to a visit is one goal (payment), so it counts too. Pings, bot and AI crawler hits, identify calls and outbound links are free. Traffic that you exclude is not stored, so it does not count. Plans count per account: the events of all the sites that you own add up.
The plan month is a monthly cycle, not a calendar month. The cycle starts on the day that your trial started. On a paid plan, it starts on the day that your current billing period started. A new cycle starts on the same day each month (UTC). Account → Billing shows the events since the start of the cycle and the day that the next cycle starts. GET /api/v1/billing and the MCP tool get_billing give the same numbers (usage.since, usage.resets_at).
See what you use
Settings → Usage shows the events of each calendar month (UTC) by type, the projection for the month, and the 10 paths and hostnames with the most events, so that you can see what drives the volume. The site owner also sees the total of all their sites, because plans count per account. Because the plan's cycle can start on any day of the month, these numbers can differ from Account → Billing; the Usage tab also shows the count of the current cycle.
Agents read the same data:
curl -sS "https://twelvebit.app/api/v1/usage" -H "Authorization: Bearer $TWELVEBIT_API_KEY"The MCP tool is get_usage. Both take month (YYYY-MM) for an earlier month.
Controls
Use them in this order. The first two do not change the accuracy of what you keep.
| Control | Where | Effect on accuracy |
|---|---|---|
| Exclude paths | Settings → Exclusions, or excluded_paths | None for the pages you keep. Excluded pages are gone from every report. Do not exclude checkout or success pages: revenue attribution needs them. |
| Exclude hostnames | Settings → Exclusions, or excluded_hostnames | None. Use it for staging, preview and local hosts that load the script. |
| Drop pings | Settings → Usage, or drop_pings: true | The script sends one ping when a page is hidden, to measure the time on the last page. Without pings, visit durations are shorter and one-page visits show 0 seconds. Visitors, page views, bounce rate, goals and revenue do not change. Pings are free, so this cuts writes, not billable events. |
| Sample page views | Settings → Usage, or pageview_sample_rate (100, 50, 25 or 10) | For very high traffic only; off (100) by default. See below. |
Change them through the API with PATCH /api/v1/sites/{siteId} (scope write:config) or the MCP tool update_site_settings:
curl -sS -X PATCH "https://twelvebit.app/api/v1/sites/example.com" -H "Authorization: Bearer $TWELVEBIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"excluded_paths": ["/admin/**", "/health"], "drop_pings": true}'excluded_paths and excluded_hostnames replace the whole list, so read the current list first (GET /api/v1/sites/{siteId} or get_usage). To add or remove one entry without the read, use POST /api/v1/sites/{siteId}/exclusions or the MCP tool update_exclusions (see Exclusions).
Sampling and accuracy
With a sample rate of 25, twelvebit keeps the page views of 25% of visitors. The choice is fixed per visitor, so a kept visitor keeps every page and their journey stays whole. Goals, identify calls and payments are never sampled, so alerts still fire for every signup and revenue stays complete.
What this does to the numbers while sampling is on:
- Visitors, visits and page views drop to about the share you keep. The dashboard does not scale them up: multiply by 100 / rate (4 for 25%) to estimate the full numbers. Small counts (one page, one day) get noisy.
- Conversion rate and revenue per visitor read higher, because goals and revenue are complete but visitors are sampled. Compare them only with periods at the same rate.
- Funnels that start with a page step undercount; funnels of goals stay exact.
- Revenue by channel credits only the payments of kept visitors; the rest show as without a source.
Turn sampling off (100) as soon as you can. A change applies to new events only; stored data does not change.
Billing emails
The owner of the account gets these emails. None of them stops tracking or deletes data.
| When | |
|---|---|
| Your trial ends on … | Once, 3 days before the trial ends, unless a plan applies. |
| A twelvebit payment failed | When a renewal payment fails. The dashboard stays open for 7 more days while Dodo Payments tries again. |
| Your twelvebit plan is canceled | When the plan is canceled. You keep the plan until the end of the period that you paid for. |