Skip to content

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>

@dumbledor/sdk (coming soon)

An npm package for framework integrations is in development. For now, use the CDN script tag above. Server-side tracking works today via the ingest API.

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.