I think you would want to add that code to tpl_header.php.