I recommend the GameAnalytics module for anything like this. It’s super easy to set up and completely free!