Code for an analytics dashboard