Documentation

How to start collecting events and get reports. You need the project token from your workspace.

1. Web tracker

Insert the snippet before the closing </body> tag and replace PROJECT_TOKEN with your project's token.

<script async src="https://de2-stats.duckdns.org/t.js" data-token="PROJECT_TOKEN"></script>

2. Server-side events (HTTP)

Send events in batches of up to 500. Ingestion is acknowledged with 202; processing is streamed.

curl -X POST https://de2-stats.duckdns.org/v1/events \
  -H "Authorization: Bearer $PROJECT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"events":[{"type":"pageview","url":"/","ts":1764000000}]}'

3. Reports

Rollups are available through the reporting API and the web UI. Aggregate latency is under one second.

Limits

ParameterValue
Batch size500
API requests per minute1,200
Raw event retentionper plan