My self made and hosted google analytics alternative
2021-12-20
2021-12-20
I didn't wanted to use Google Analytics or similar tools to track the traffic of my side projects because: a) I don't need that much details about my views and b) I don't want to have a cookie consent dialog for asking for permission to forward user related data to a 3rd party service.
Because of that I use a self made and hosted service for tracking basic web traffic analytics stuff: basic_analytics.
It is made with Django, Bootstrap and chart.js and provides an API endpoint where you can send the page view data as payload.
With that data it can generate different charts that show:
Update February 2022
In order to send data to Basic Analytics from the backend I created a Django app called django_basic_analytics_tracker.
It provides a mixin that you can use in the views that you want to track. It overrides the dispatch
method, take some request data and sends it to basic analytics service in the post payload.