Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Tag Manager – Header, Body And Footer icon

Tag Manager – Header, Body And Footer

v4.1.2
by yydevelopment · 4.7 (54 reviews)

Simple plugin that allow you add head, body and footer codes for google tag manager, analytics & facebook pixel codes.

20K+ active installs Updated Nov 25, 2026 Tested to 7.2 Requires PHP 7.1
Try Demo Download
Pre-installed Ready in ~10s No card
Tag Manager – Header, Body And Footer

About Tag Manager – Header, Body And Footer

The Tag Manager plugin allows you to easily insert code into your website's header, body, and footer sections. You can use it to add code for services like Google Tag Manager, Google Analytics, Facebook Pixel, Google Adsense, and more. The plugin also supports lazy loading and allows you to exclude/include code on specific pages.

Screenshots

Tag Manager – Header, Body And Footer screenshot
Tag Manager – Header, Body And Footer screenshot
Tag Manager – Header, Body And Footer screenshot
Tag Manager – Header, Body And Footer screenshot
Tag Manager – Header, Body And Footer screenshot

Frequently asked questions

What is the primary function of the Tag Manager plugin?
The Tag Manager plugin allows 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. This enables you to add code and snippets for various services.
Which services are supported by this plugin?
This plugin supports services like Google Tag Manager, Google Analytics, Facebook Pixel, Google Adsense, and Yandex Metrika. It can be used for any website that requires code injection.
Can I control where the code is injected?
Yes, you can inject code into the head section, below the body start tag, and at the end of the page above the close body tag. The plugin also allows you to insert more than one code for each section.
Does the plugin offer any exclusion features?
Yes, the plugin provides the ability to exclude pages by user role (admin or logged-in users) and to exclude/include pages code by page ID.
Is there support for lazy loading?
Yes, the plugin offers lazy load support for GTM, Google Analytics, Facebook Pixel, Yandex Metrika, and custom Javascript codes.

Changelog

4.0.0

  • Tag Manager – Header, Body And Footer is now Infinity23
  • Everything the Tag Manager plugin did is still here and still free, inside the Tag Manager module
  • Your existing tags, tracking IDs, lazy load settings and exclude rules are moved over automatically on update, nothing is deleted
  • Every other module stays switched off until you turn it on yourself on the Include / Exclude page
  • Adds accessibility, page and post notes, floating contact buttons, back to top, cookie bar, SMTP, redirects, cron management and more

3.6.2

  • Fixed broken access control vulnerability

3.6.1

  • Fixed warning on php 8.0

3.6.0

  • Added the option to add notes and storage unwanted tags data

3.4.1

  • Fixing problem with tag manager code not working well without body open selected

3.4.0

  • Added the ability to add more than one lazyload script
  • Changed the lazyload by action to be javascript without jquery

3.3.1

  • Fixing remove image not showing up

3.3.0

  • Added the ability to stop custom js on elementor editor

3.2.0

  • Added the ability to insert custom javascript code that will be in delay

3.1.4

  • Fixed error on upgrade to php 8.1
  • Changed including files method
  • Added facebook pixel lazy loading
  • Added lazy loading timer
  • Added exclude lazy loading for pages

3.0.0

  • Added lazy load options for google analytics and yandex metrica

2.3.1

  • Trying to deal with all to undefined function wp_get_current_user() error

2.3.0

  • Added the option to exclude pages by user role (admin or logged in users)
  • Added the option to exclude code by pages id

2.1.0

  • Added donation button to the plugin description
  • Added support for php7,4

2.0.1

  • Escape the data better

2.0.0

  • Added the option to add more than one tag

1.5.3

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

1.5.2

  • Remove ob_start from back end

1.5.1

  • Adding line breaks to output code

1.5.0

  • 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

1.4.1

  • Fixing the checkbox menu working the other way around

1.4.0

  • Improved content
  • Improved page layout

1.3.0, 1.3.2

  • Added language support

1.2.1

  • Added nonce to plugin
  • Added global rating message block

1.1.9

  • Plugin name change

1.1.8

  • Fixing PHP warnings

1.1.6

  • Fixing “Cannot modify header information” error

1.1.5

  • Fixing php alerts

1.0.0

  • Tag Manager – Header, Body And Footer plugin launch

Try other plugins