If you want it in your <head>, add it to the wp_head box (under WordPress hooks).
Adding just after <body> depends upon which theme you’re using.
For Thesis 2: Add to an OpenBox and drag it to the very top of the main container in Thesis’ editor.
For Thesis 1.8.x: Add to the hook thesis_hook_before_html
For K2: Add to the hook template_body_top
For Headway: Add to the hook headway_body_open (this is just a guess — I’ve never used Headway to see where the hooks are located, just to find out what they are named)
For Flat: Add to the hook flat_body_top
For themes supporting Theme Hook Alliance: Add to the hook tha_body_top
Thread Starter
David
(@nicheplay)
If you want it in your <head>, add it to the wp_head box
Looks like that did the trick. Thanks!
You got it! And thank you for using OpenHook. 😀
Thread Starter
David
(@nicheplay)
Q: How to add Google Tag Manager to Thesis in WP?
A: So that others can find the answer here as well… let me detail how I got the Google Tag Manager code AND the “data layer” into Thesis 1.8.x using OpenHook. (Thanks to @brazenlygeek!)
1) Google Tag Manager
Google Tag Manager should be located just after the opening <body> tag . So, added that code snippet to hook thesis_hook_before_html.
2) Data Layer
if you implement a data layer, it needs to be in the <head> section. So, added it to the wp_head box.