enable analytics in template