Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
Tag Manager – Header, Body And Footer icon

Tag Manager – Header, Body And Footer

v3.6.1
by yydevelopment · 4.7 (49 reviews)

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

30K+ active installs Updated Dec 26, 2024 Tested to 6.5.5 Requires PHP 5.2.4
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

1.0.0

  • Tag Manager – Header, Body And Footer plugin launch

1.1.5

  • Fixing php alerts

1.1.6

  • Fixing “Cannot modify header information” error

1.1.8

  • Fixing PHP warnings

1.1.9

  • Plugin name change

1.2.1

  • Added nonce to plugin
  • Added global rating message block

1.3.0, 1.3.2

  • Added language support

1.4.0

  • Improved content
  • Improved page layout

1.4.1

  • Fixing the checkbox menu working the other way around

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.5.1

  • Adding line breaks to output code

1.5.2

  • Remove ob_start from back end

1.5.3

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

2.0.0

  • Added the option to add more than one tag

2.0.1

  • Escape the data better

2.1.0

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

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.3.1

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

3.0.0

  • Added lazy load options for google analytics and yandex metrica

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.2.0

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

3.3.0

  • Added the ability to stop custom js on elementor editor

3.3.1

  • Fixing remove image not showing up

3.4.0

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

3.4.1

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

3.6.0

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

3.6.1

  • Fixed warning on php 8.0

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.