updates base template to add new analytics code