Last updated 26 November 2026. By Paul Badarau.
A fictional developer has a new marketing site on example.com and an afternoon. They want visitors and thrown errors in place before the announce, and they want to know the work is finished.
- Create the Project in Accounts and set the IANA time zone you will use when you read a day. Accounts owns the canonical hostname. If www.example.com serves the same site, add it as an alias. Each alias is an exact hostname, and a Project holds at most 20.
localhostis refused. - Copy the deferred snippet from the Project tracking setup. It has this shape.
<script defer src="https://analytics.postdeploy.dev/script.js" data-site="your-project-id"></script>The check in Analytics is confirmed only after a pageview arrives. - In Monitoring, an Owner or Administrator chooses the Project and creates a DSN. It is shown once. Install
@sentry/browserand callSentry.init({ dsn: SITE_DSN }). AddSentry.browserTracingIntegrationandtracesSampleRateonly if you want traces. Spans are not monthly Monitoring events. - Deploy. Open the public hostname in a browser that is not sending Do Not Track or Global Privacy Control. A new Project drops both, and it drops known bots. Then throw one test error and open it in Monitoring. Setup is confirmed when that first event has been received.
Optional, in the same sitting. Add one goal for the action the site is for. A page goal is the exact path, such as /thanks, and it does not add a pageview. Create it before the visits you want counted.
Two checks fail quietly. A Content Security Policy of default-src 'self' blocks the script on https://analytics.postdeploy.dev and the error envelope to https://monitoring.postdeploy.dev. Allow the analytics host in script-src and connect-src, and the monitoring host in connect-src. And until a source map is stored, the culprit on the issue stays the minified name. Opening the issue maps the newest stored event. Opening one occurrence maps that occurrence.
The product page for this is Analytics.