This is a duplicate of my own post, since I am not sure if I should have posted it in this section instead:
https://archived.seventhqueen.com/forums/topic/google-tag-manager-other-analytics-tracking-codes
It would be great if you could extend the tracking code:
Theme Options -> General Settings -> JavaScript Code
Currently just 1 option:
right before </body>
New, 4 options:
right after <head>
right before </head>
right after <body>
right before </body>
This will allow to insert any possible analytics tracking code imaginable. For instance, Google Tag Manager has to be added right after the first <body> statement to work correctly.
While Optimizely A/B Split Testing requires their code to be inserted after the <head> tag.
If you create this feature once with all four fields, you don’t have to worry about any more support requests since those four positions cover all possible positions required by any tag or script.