Added analytics to the front-end