The best way here would be to make a small plugin that just inserts the script tag into the headers.
Alternatively, you can edit your template to output this code. Just don't forget that you will have to do that again when you update the template. In other words: the plugin method would be safer.