Custom domain
Serve your dashboard and tracking script from your own subdomain, like analytics.yourapp.com.
npx databull@latest domain
Pick one of the sites (zones) on the same Cloudflare account and a subdomain, analytics.yourapp.com by default. Cloudflare creates the DNS record and the certificate for you; the first certificate can take a few minutes.
- The domain has to be on the same Cloudflare account as DataBull. Domains elsewhere: move the DNS to Cloudflare first (free plan is fine).
- Use a subdomain nobody else uses. If it already has a DNS record or another Worker, the command stops and says so; it never deletes your records.
- The workers.dev address keeps working. Back to it only:
npx databull@latest domain --domain workers.dev.
Changed the address? Update the script tag on your sites to the new URL, or leave it: the old workers.dev URL keeps collecting too.