Optic gives you the reports you use in Google Analytics 4, the heatmaps and session recordings you use in Microsoft Clarity, and forecasting on top, in one Next.js app that stores everything in a single SQLite file on your own server.
<!-- in <head>, on every page -->
<script defer src="https://analytics.example.com/optic.js" data-site="YOUR_SITE_ID"></script>Visitors are counted with a hash that uses a salt rotated every day. The salt is deleted, so nobody can be followed across days.
Everything lives in one SQLite file on your server. No third party sees a single pageview. Export any report to CSV.
Everything typed into form fields is masked before it leaves the browser. Add optic-block to hide any element.