In

Insert Headers and Footers

by WPCode

The lightweight WPCode build for adding scripts to the header and footer without editing theme files.

4.91,880 WordPress.org reviewsCode snippetsFreemium

This link may earn us a commission. It never changes our rating.

What Insert Headers and Footers does

The lightweight WPCode build for adding scripts to the header and footer without editing theme files.

It sits in the code snippets part of a WordPress stack and is sold by WPCode on a freemium basis. We recommend it in our code snippets guides because it does that one job well without asking you to rebuild the rest of the site around it.

Every plugin adds work to a page request, so treat this as a decision with a cost. Record a speed test before you install it and run the same test afterwards, on the same page, so you know exactly what it charged you.

Real user ratings

Score

4.9/5

Reviews

1,880

Active installs

3,000,000+

Downloads

92.6M

Latest version

2.3.9

Last updated

2026-08-27

These figures come straight from the public WordPress.org plugin directory API for version 2.3.9, not from us. Check them yourself on the WordPress.org listing. Our own editorial score is 4.8/5.

Where Insert Headers and Footers ranks elsewhere

Insert Headers and Footers does not appear in the published "best of" lists we track from WPBeginner, TechRadar, Kinsta, Themeisle and similar sites. That is not a mark against it - those roundups are short and skew towards the biggest names.

What changed in the latest version

v2.3.9Latest release
  • Fix: PHP fatal error when a snippet error was logged on a frontend or REST request while the logs folder was missing.
  • Fix: Snippets no longer get overwritten with visual editor content when other plugins trigger editor events in the admin.
  • Fix: Library snippet previews now always start at the top of the code.
  • Fix: PHP fatal error on some admin AJAX requests from the library connect notice.
v2.3.8
  • Tweak: You can now resize the code editor on the Live CSS Preview screen by dragging the divider between it and the preview, and it remembers the size you set.
  • Tweak: Editing an active snippet now requires permission to activate snippets; without it the editor is read-only.
v2.3.7
  • New: Set up a whole group of related snippets at once with Snippet Packs - pick a pack and install every snippet in it with a single click, then manage or remove a pack anytime while keeping any snippets you use across other packs.

Release notes are the developer's own words, published on WordPress.org. Read the full changelog

Pros and cons

  • Fastest way to add a tracking tag
  • A free tier you can trial before paying
  • Actively maintained and used on production sites we test
  • Limited beyond header and footer
  • The features most sites need sit in the paid tier

How to use it

  1. 1Add one snippet at a time and give it a clear descriptive title.
  2. 2Set the placement and any conditional rules before activating.
  3. 3Activate on staging first if the snippet touches checkout or login.
  4. 4Use the error protection feature so a bad snippet cannot lock you out.
  5. 5Export your snippets so they can be restored on another site.

How it compares

Other code snippets plugins we recommend, with their rating and pricing model.

PluginOur ratingWordPress.orgPricingBest for
Insert Headers and Footers4.84.9 (1,880)FreemiumFastest way to add a tracking tag
Advanced Scripts4.6n/aPremiumPrecise placement conditions
Code Snippets4.84.7 (509)FreemiumSimple, proven and free
Header Footer Code Manager4.64.9 (309)FreemiumMade for tracking tags
Simple Custom CSS and JS4.74.4 (103)FreemiumCSS and JS with version history
WPCode4.94.9 (1,880)FreemiumError protection stops white screens

Guides that cover Insert Headers and Footers