WordPress allows you to insert code only in specific places. Those places are called hooks. Here you can find the list of available hooks.
Unfortunately there is no hook immediately after the <body> tag.
But you can simply insert the Google Tag Manager in the footer. I know that the Developer Guide recommends to have it after the <body> tag, but it works also in the footer.
Viewing 1 replies (of 1 total)
The topic ‘Add JS after opening body tag’ is closed to new replies.