Skip to content
trackd.one

API

Sharing & embeds

Share statistics publicly — as a link without login or as a widget on your own website.

Create a shared link in the project settings under Sharing. Links expire after 30 days by default and can be password-protected. Shared dashboards are noindex and show aggregate figures only — pageviews, visitors, top pages, sources and countries.

Embeds

With the Business plan you can embed a compact statistics widget into your own website. Create the embed in the project settings under Embeds and list the domains allowed to show it.

<script src="https://trackd.one/embed.js" data-trackd-embed="emb_YOUR_EMBED_TOKEN" data-theme="system"></script>
Attribute Meaning
data-trackd-embed embed token from the settings (required)
data-theme light, dark or system (default)
data-host base URL of your self-hosted instance (optional)

The script inserts an <iframe> in its place. The server only allows framing on the listed domains (frame-ancestors). The token is public; the data is aggregate only.

Ready in minutes

Create a free account, add your website or app, copy the snippet.

Start for free