I would like to add the following code to a template which can apply the code to each page (rather like putting it in the <head> tag).
I tried putting it in the customer/home.tpl, based on what the Webmaster Mode defined as the template that controls the whole page, but I'm not sure if that's the right place for it.