Hack: Placing the Google Tag Manager in WordPress After the body Tag
![](https://www.machetewp.com/wp-content/uploads/2020/03/google-tag-manager-wordpress.jpg)
In this post, I will show how to insert the Google Tag Manager in WordPress immediately after the opening tag. The solution isn’t based on a child theme or JavaScript.
Machete’s cookie bar is simple on purpose, by default it only allows to enable or disable it, change the text and choose between a light or a dark skin. You can access it on the side menu of WordPress admin…