Is there a method to relocate my google analytic code to a different location within my Angular project rather than directly adding it in the head section? I am aware that I cannot conceal my ID, but I aim to enhance the cleanliness of my code when viewing it in the browser. If feasible, I would prefer solutions in Typescript.
All I want is to hide my script tag from the DOM.