Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make…
About Head, Footer and Post Injections
The Header and Footer plugin allows you to easily add various tracking codes and verification codes to your website without the need for multiple plugins. It provides injection points for code placement and supports different configurations for mobile and desktop. Additionally, it offers special injections options and is compatible with AMP pages.Frequently asked questions
What is the purpose of the Header and Footer plugin?
The Header and Footer plugin allows you to add various codes, such as Google Analytics, Facebook Pixel, custom tracking code, Google DFP code, and verification codes, in a centralized point to manage them all. It is theme independent, meaning you can change your theme without losing the injected code.
What are the injection points and features of the Header and Footer plugin?
The Header and Footer plugin offers the following injection points and features:n- Injection in the page section where most of the codes are usually addedn- Injection just after the <head> tag as required by some JavaScript SDKs like Facebookn- Injection in the page footer (just before the </body> tag)n- Ability to recognize and execute PHP code for adding logic to your injectionsn- Distinct desktop and mobile injections
Does the Header and Footer plugin support AMP?
Yes, the Header and Footer plugin has a dedicated AMP section that is compatible with AMP plugins. You can inject specific codes in AMP pages.
Can you add codes on top, bottom, and in the middle of posts and pages using the Header and Footer plugin?
Yes, with the Header and Footer plugin, you can add codes on top, bottom, and in the middle of posts and pages. You can also differentiate between mobile and desktop injections, as well as configure separate settings for posts and pages.
Is there a specific injection for bbPress?
No, the specific bbPress injections are going to be removed. It is recommended to switch to the Ads for bbPress plugin, which offers more flexibility and completeness.
Changelog
3.3.6
- Version number fix
3.3.5
- Fixed not visible options on the admin side
3.3.4
- Improved the after “body” tag injection (Markus Sandelin)
- Not completely removed the page buggering due to the possible use of “generic tags” (probably no one use)
- Fixed a int conversion PHP warning
- Started an admin page refresh
3.3.3
- WP 6.9 check
- PCP Check
3.3.1, 3.3.2
Breaking changes (see below)
- Disabled by default PHP on multisite installations
- Added constant HEADER_FOOTER_MULTISITE_ALLOW_PHP to be used on wp-config.php to enable PHP on multisite installations
- Added constant HEADER_FOOTER_ALLOW_PHP to be used on wp-config.php to enable PHP (true by default for compatibility)
