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

Does not work for me in the HEAD section. Neither section seems to work, the script is being integrated too late either in the HEAD or in the BODY :frowning: