added check for analytics code to bluebottle base tpl