Tag Manager – Header, Body And Footer


The tag manager is a simple plugin that will allow you to insert/inject code into your website in the header section, after the start body tag and in the footer above the ending body tag.

You can use this plugin to add code and snippets into your website for services like Google Tag Manager, Google Analytics, Facebook Pixel, Google Adsense and much more…

This plugin will also allow you to insert meta tags to your website header and even add phone/WhatsApp button or anything using custom HTML code with footer code injection.

Tag Manager – Injection Location And Features

  • Head section – between the top page head tags
  • Body section – below the body start tag
  • Footer section – at the end of the page above the close body tag

Supported Services And Platforms

  • Google Tag Manager
  • Google Analytics
  • Google Adsense
  • Facebook Pixels
  • Any other website that require code injection.

Supported Plugin Actions

The actions below will allow you to directly load the code on external files that uses wordpress functions. With these functions you will be able to add header, footer and body codes for web elements outside your wordpres site.

  • yydev_tag_manager_head()
  • yydev_tag_manager_below_body()
  • yydev_tag_manager_before_closing_body()

About the author & license

This plugin was brought to you for free by YYDevelopment under GPLv2 license.

The plugin is 100% free and we intend to keep it that way in the future as well. You are free to use this plugin and all our other free wordpress plugins for your projects, your client's projects or for anything else you need.

If this plugin was helpful for you please share it online and if you get a chance to give it a positive review we will appreciate that.

If have any problems or questions regarding our tag manager – header, body and footer plugin submit a ticket and we will be happy to help.

צילומי מסך

  • The wordpress tag manager plugin admin panel
  • The header code placment in the page itself
  • The body snippet code code placment in the page itself
  • The footer code in the page above end body


This section describes how to install the plugin and get it working.


  1. Upload the plugin files to the /wp-content/plugins/tag-manager-header-body-footer directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. On your admin panel go into "Tag Manager" option and add your code.

שאלות נפוצות

Do I need to take any action to make this plugin work?

All you need to do it to install and activate the tag manager plugin and you will be able to see it on the site wordpress mene.

How do I add header code into the site

To add code inside your website head tags go inside the tag manager plugin page and insert the code under the "insert head tags code below" title.

How do I add code below the body tag in the site

To add code below the body tag simply go into to tag manager plugin page and insert the code under the "Insert below body tags code below" title.

How to add code at the bottom/footer of the page above the end body tag

To add code at the end of the document above end body tag insert your code under "Insert footer tags code below, code above body" title.


1 באוקטובר 2020
I looked for a plugin to insert the tag manager code without touching the template files. Tag Manager - Header, Body and Footer is exactly what I needed. I was able to set it up very easy and it does what it's supposed to do. I can also added extra some other code that I need in that area. Highly recommended! Thanks!
25 בספטמבר 2020
I tried now for 3 days to find a solution which places the nonscript-Part to the right place right unter the opening body-tag. The header-part to put right is simple, but this is the first solution, which places both parts right (without editing the template itself, which would be overwritten be next theme-update). No other plugin (even the header-footer-solutions) has done that right; even a solution for using child-function.php was not found. WELL DONE - 5 Stars!! Thank you 🙂
22 בספטמבר 2020
Running on WP5.5.1, theme TwentySeventeen. It does what's supposed to do...
26 במאי 2020
The body tag saved the tag in the field and I can remove it or edit the tag. But the header tag saved the tags on all my pages and I can't remove the tags. Fix it and will give a 5 star
קראו את כל 7 הסקירות


"Tag Manager – Header, Body And Footer" הוא תוסף קוד פתוח. האנשים הבאים תרמו ליצירת התוסף הזה.


ניתן לתרגם את "Tag Manager – Header, Body And Footer" לשפה שלך.

מעוניינים בפיתוח?

עיינו בקוד, ראו את הקוד ב-SVN repository, או הירשמו ללוג פיתוח באמצעות RSS.



  • Tag Manager – Header, Body And Footer plugin launch


  • Fixing php alerts


  • Fixing "Cannot modify header information" error


  • Fixing PHP warnings


  • Plugin name change


  • Added nonce to plugin
  • Added global rating message block

1.3.0, 1.3.2

  • Added language support


  • Improved content
  • Improved page layout


  • Fixing the checkbox menu working the other way around


  • adding the option to load head code with yydev_tag_manager_head()
  • adding the option to load below body code with yydev_tag_manager_below_body()
  • adding the option to load above end body code with yydev_tag_manager_before_closing_body()
  • added new way to load below body code without ob_buffer


  • Adding line breaks to output code


  • Remove ob_start from back end


  • Fixing "count(): Parameter must be an array or an object that implements Countable" error