Using Golang to store events in postgress DB. Event is when user lands on frontend and clicks any button. To tack user information like ip,region,user_agent and more using https://ipapi.co/json/
to fetch data
Small GO backend that exposes a REST end point to consume events and stores them into PostgreSQL.
Cube.js API with the schema for the events.
Very simple Javascript file that capture clicks and page views and send them to the backend using the REST end point.