I had some nice experience with Piwik (Matomo) in my previous life. its a typical session-based analytics, nothing fancy like event-base analytics (for that, check snowplow or segment, though segment can get expensive really fast)

Martin FiserKeboola TEAM
Head of Professional Services @ Keboola