Code for displaying user analytics