How to add a script at the beginning of page header?

@SchweizerSchoggi Since you are a hosted customer, I can log into your site and take a look if you wish. Could you send me a PM with the script code please?