add analytics to default layout