insert analytics code in the layout