Added tracking code into template.