Self-hosting Analiza

Last updated · View as Markdown

Yes, you can self-host Analiza. The whole stack (tracker, ingestion API, storage and dashboards) is open source on GitHub and runs with Docker Compose. Point the tracker at your own server with the script’s hostname attribute.

What is in the stack?

What do I need?

The full step-by-step guide, including the configuration and secrets to set, is in the self-hosting section of the README.

How do I point the tracker at my server?

Add a hostname attribute with the base URL of your ingestion API. Events are sent to <hostname>/eye:

<script defer src="https://your-cdn.example.com/analiza.js"
        tenant="YOUR-SITE-ID"
        hostname="https://analytics-api.example.com"></script>

Without hostname, events go to the hosted service at https://api.analiza.dev.

Should I self-host or use the hosted service?

Self-hosting gives you full control and costs only your own infrastructure, but you run upgrades, backups and monitoring yourself. The hosted service is free up to 100k events a year and €9 a year up to 1M events, runs in the EU, and lets you export all your data at any time if you want to move to your own server later.