Documentation

whatsmytraffic is privacy-first web analytics, a form backend and a passwordless auth service. These pages cover the dashboard and the public API.

Guides

  • Usage: the dashboard, tracking, forms, auth, share links and settings.
  • API: the form endpoint, the analytics API and the auth service.
  • Admin: invites and instance mail (admins only).

Analytics in one snippet

Add a website in the dashboard under Websites, then drop its tracking snippet into any page. Visits show up cookieless and aggregated, with no consent banner to maintain.

Add to any page Click to copy
<script defer src="https://whatsmytraffic.com/beacon.js"
        data-website-id="YOUR-WEBSITE-ID"></script>

Forms in one snippet

Create a form under a website in the dashboard, then point any HTML form at its endpoint. Submissions are stored, spam-filtered and pushed to you by webhook or notification.

Point your form at it Click to copy
<form action="https://whatsmytraffic.com/f/YOUR-FORM-ID" method="POST">
  <input name="email" type="email" required />
  <textarea name="message" required></textarea>
  <button type="submit">Send</button>
</form>

Auth in one snippet

Create an auth app under a website, then load the SDK on your site. It adds a passwordless magic-link login: wmtAuth.login(email) to sign in, wmtAuth.getSession() to read the signed-in user. No end-user data is stored.

Add the auth SDK Click to copy
<script defer src="https://whatsmytraffic.com/whatsmytraffic-auth.js"
        data-app-id="YOUR-APP-ID"></script>