• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

GTM directly after <body> via template-hooks

#1
Hello everyone,

I just created an add-on for template-hooks making use of the body-hook.

Unfortunately I need the additional content to be DIRECTLY after the <body> but at the moment it is enqueued just before the </body>.

btw: the code I try to implement is the Google Tag Manager - according to Google the code has to be placed exactly after the opening body-tag.

Is there a way I can do this using hooks?

Thanks for your help in advance!