Put analytics code on template