Head, Footer and Post Injections
View on WordPress.orgScores higher than 96% of indexed plugins
About
Head and Footer plugin lets you to add HTML code to the head and footer sections of your site pages, inside posts... and more!
Security History
What It Does
Head, Footer and Post Injections lets you paste HTML, CSS, or JavaScript snippets into specific zones of your WordPress site, including the site-wide head and footer, individual posts and pages, and conditional contexts like categories or post types. It is essentially a wrapper around the wp_head and wp_footer hooks with a clean admin UI, so non-developers can install tracking pixels, verification meta tags, and ad code without editing theme files. The targeting rules go beyond just 'every page,' which is what separates it from simpler alternatives.
Who It's For
This is a good fit for site owners running ad networks, affiliate programs, or analytics setups who need to drop conversion pixels and verification tags into targeted page groups rather than site-wide. It also suits small teams that want a no-code way to manage header and footer scripts without handing off to a developer for every tracking change. The 300,000 active installs suggest it has settled into a niche of publishers and marketers who need more granularity than the average snippet plugin offers.
Who Should Skip It
If you only need to inject a single script across your whole site, this plugin is overkill and you would be better served by lighter tools like WPCode or Site Kit. Developers comfortable editing functions.php or using a child theme should skip it entirely, since hooks are more reliable and version-controlled than admin-entered HTML. Anyone with a high-traffic site that depends on strict performance budgets should also test carefully, because any extra plugin adds overhead.
The Bottom Line
Head, Footer and Post Injections scores 86.73 out of 100 and does exactly what the name promises, with the added value of targeted injection rules that justify its 300,000 installs. The biggest red flag is the near-empty support forum: with zero resolved threads out of one total, there is essentially no evidence the author is helping users when things break. For most site owners, WPCode is the safer default given its scale and track record, but this plugin remains a reasonable choice for users who prefer its simpler interface.
Related Plugins
Pick WPCode if you want 10x the install base, conditional logic, and a richer snippet library, but expect a more complex UI.
Pick Site Kit if your snippet needs are limited to Google's ecosystem, since it handles Analytics, Search Console, and AdSense natively without custom code.
Pick Independent Analytics if you specifically want privacy-friendly on-server analytics rather than a generic header injection tool.
Pick Matomo if you need a full self-hosted analytics suite and do not want to rely on Google scripts at all.
Pick WP Statistics for a lighter, server-side analytics experience that does not require injecting third-party tracking code.