Adding Custom Code To The Top Of <head> Rather Than Bottom

Hi all,
I hope someone might be able to help with this.
I have a tracking software that the code needs to be added to the top of the section rather than the default bottom.
For some reason it just doesn’t work when installed at the bottom but it does when it is at the top.
Is there any way I can get the custom code to appear as high as possible in the head section rather than just before the tag.

The only way to do that would be to use JavaScript to add your code to the DOM where you want it. You have no option to do so natively in the designer.