Mixpanel is free with limits, and paid beyond that. Here is a tool that does the same job for free, including open-source software.
Analyze how people use your site or app: analytics, session recordings, A/B tests.