Skip to content

Sending events through your own domain

Some browsers and extensions block requests to analytics hosts. Serving the script and the event endpoint from your own domain avoids most of that.

Use data-api to send events somewhere other than the script’s own host:

<script defer data-domain="example.com"
data-api="https://example.com/stats/event"
src="https://example.com/stats/script.js"></script>

Forward two paths to your Tidemark installation:

Your path Forwards to
/stats/script.js https://stats.example.com/js/script.js
/stats/event https://stats.example.com/api/event

Pass the original client IP in X-Forwarded-For so locations and shields keep working. Make sure the proxy sends the visitor’s User-Agent too.

© 2026 Tidemark · MIT licenseThese docs set no cookies and run no trackers.