Title: Insertion location
Last modified: September 18, 2021

---

# Insertion location

 *  Resolved [Lalit Jindal](https://wordpress.org/support/users/lalitjindal/)
 * (@lalitjindal)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/insertion-location-2/)
 * Hello
 * What should be the insertion location for the google tag manager code? The first
   should be in the head but about the second code that should be placed “just after
   opening body tag”?

Viewing 1 replies (of 1 total)

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/insertion-location-2/#post-14888167)
 * Hello.
 * Unfortunately, the hook for adding something after the body tag appeared quite
   recently and is not supported by many outdated sites and themes, so there is 
   no way to insert a snippet in this place in our plugin.

Viewing 1 replies (of 1 total)

The topic ‘Insertion location’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Temyk](https://wordpress.org/support/users/webtemyk/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/insertion-location-2/#post-14888167)
 * Status: resolved