Quick start
Add the tracker script and confirm your first pageview.
Copy your website ID from project settings and add the tracker script before the closing </body> tag. Pageviews are captured automatically.
html
<script defer src="https://cdn.dumbledor.com/script.js" data-website-id="YOUR_PROJECT_ID"></script>Add data-do-not-track="true" to skip tracking when the browser sends a Do Not Track signal.
html
<script
defer
src="https://cdn.dumbledor.com/script.js"
data-website-id="YOUR_PROJECT_ID"
data-do-not-track="true"
></script>React or Next.js?
Use the SDK instead of the script tag. It handles client-side route changes and gives you typed
track() calls.Local development
Override the ingest host with
data-ingest-url when testing against a local ingest service.html
<script
defer
src="https://cdn.dumbledor.com/script.js"
data-website-id="YOUR_PROJECT_ID"
data-ingest-url="http://localhost:3001"
></script>Open the dashboard to confirm events are flowing.