Is there a way to get analytics tracking script in the header?

Can you try using Embed HTML component, as proposed here: Adding any kind of integration