Title: Putting code into header
Last modified: August 3, 2023

---

# Putting code into header

 *  Resolved [Michael Adamidis](https://wordpress.org/support/users/azzurres/)
 * (@azzurres)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/putting-code-into-header/)
 * Hi there,
   I want to place a code into the header (it’s the Google Tag Manager
   script). How can I do that? I have found this in the Content (HTML) section: “
   Display in site head section”. Should I put it there?2nd: Where should I put 
   code for the body? Should I put it where the Functions (PHP) section is?Thanks
   a lot,
 * Michael
    -  This topic was modified 2 years, 10 months ago by [Michael Adamidis](https://wordpress.org/support/users/azzurres/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fputting-code-into-header%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/putting-code-into-header/#post-17053439)
 * Display in site head section under Content (HTML). Will work just fine.
 * You can use “Display at the end of the <body> section, in the footer.” for code
   that needs to go in the body area.

Viewing 1 replies (of 1 total)

The topic ‘Putting code into header’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/putting-code-into-header/#post-17053439)
 * Status: resolved