Due to the way OutSystems navigates between pages, if you put the header block in your layout, it just injects the same script tag over and over on each page navigation.
If you type the new page in the url, it works correctly (meaning the whole page gets reloaded and the script appears only once in the header again).
Any ideas or solutions?