GTM directly after <body> via template-hooks

adchased

Member
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!
 
Can't you use a template modification to inject it exactly where you want?
 
Thanks your reply!

If it's in any way possible to avoid modifying a template, we would appreciate it due to updates :-)
 
Top Bottom