add analytics to app layout