Insert Headers and Footers Code icon
Analytics & Tracking

Insert Headers and Footers Code

This plugin allows you to insert Google analytic code, Facebook pixel code, custom javascript, custom style in your website's header and footer.

Is Insert Headers and Footers Code safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 3 months ago (version 1.1.10).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1.
  • Pass: Well rated Rated 5.0/5 by 8 users on WordPress.org.
  • Pass: Widely used Active on 7,000+ sites.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 17, 2026. Always keep plugins updated and test changes on a staging site.

Overview

Insert Headers and Footers Code describes itself as: “This plugin allows you to insert Google analytic code, Facebook pixel code, custom javascript, custom style in your website's header and footer.”

It is active on 7,000+ WordPress sites and rated 5.0 out of 5 by 8 users on WordPress.org. Developers can extend it through 22 actions and 56 filters, listed below.

We haven't published a hands-on review of Insert Headers and Footers Code yet. Want one, or need help with it? Send us a request.

How to install Insert Headers and Footers Code

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Insert Headers and Footers Code” and pick the one by HT Plugins.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install insert-headers-and-footers-script --activate

Requirements: WordPress 5.0+ · tested up to WordPress 7.1.4

Hooks & customisation

Insert Headers and Footers Code 1.1.10 fires 22 actions and 56 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

insert-headers-and-footers-script — top hooks
// Allows overloading the object (CMB2 or CMB2_Field) with additional capabilitie…
apply_filters_ref_array( "{$object_class}_inherit_{$method}", $args );

// Filter attributes for a field type. The dynamic portion of the hook name, $ele…
apply_filters( "cmb2_{$element}_attributes", $args, $type_defaults, $this->field, $this->types );

// Filter for determining if a field value has a valid image file-type extension.
apply_filters( "cmb2_{$field_id}_is_valid_img_ext", $is_valid, $file, $file_ext );

// Fires before fields have been processed/saved.
do_action( "cmb2_{$object_type}_process_fields_{$this->cmb_id}", $this, $this->object_id() );

// Fires on the admin side when CMB2 is included/loaded.
do_action( 'cmb2_admin_init' );

// Hook after field row ends.
do_action( "cmb2_after_{$field_type}_field_row", $this );

Browse all 78 hooks with examples →

Insert Headers and Footers Code: frequently asked questions

Is Insert Headers and Footers Code free?

Yes. Insert Headers and Footers Code is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Insert Headers and Footers Code safe to use?

Insert Headers and Footers Code is actively maintained: the latest version was released 3 months ago. Users rate it 5.0 out of 5 from 8 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Insert Headers and Footers Code work with WordPress 7.1?

Yes. Insert Headers and Footers Code is tested up to WordPress 7.1, the current release. It requires WordPress 5.0 or later.

How many websites use Insert Headers and Footers Code?

Insert Headers and Footers Code is active on 7,000+ WordPress sites, according to WordPress.org. It is currently at version 1.1.10, last updated on August 25, 2026.

What are the best alternatives to Insert Headers and Footers Code?

Plugins that do a similar job and are actively maintained include Insert Headers And Footers (200,000+ installs), Conversios (10,000+ installs), TrueAna (1,000+ installs).

Can I customise Insert Headers and Footers Code without editing its code?

Yes. Insert Headers and Footers Code 1.1.10 fires 22 actions and 56 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 78 hooks with examples.

Done for you

Need Insert Headers and Footers Code to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Insert Headers and Footers Code customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with HT Plugins. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

About the developer

HT Plugins

19 plugins · 62,540+ installs in total · 19 of 19 updated in the last year

  • Actively maintained
  • Released this month
  • Keeps up with WordPress
91 maintenance
score
Developer profile →

More plugins by HT Plugins

All 19 →

The HT Slider is an Elementor slider plugin that enables you to add advanced sliders to your WordPress website.

20,000+ installs 6 hooks

The easiest drag & drop form builder for WordPress. Create contact forms, surveys, and lead capture forms in minutes with…

10,000+ installs 60 hooks

HT Easy GA4 - Google Analytics WordPress Plugin enables tracking user behavior and viewing Google Analytics dashboard reports from your…

6,000+ installs 7 hooks

Alternatives in Analytics & Tracking

See all →

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful…

5+ million installs 91 hooks

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow…

2+ million installs Reviewed 186 hooks
CookieYes icon

CookieYes

3,238

Google-certified CMP: cookie banner, cookie notice and cookie consent for GDPR/CCPA compliance, with cookie blocker, cookie scanner and consent log.

1+ million installs Reviewed 82 hooks

Publish your cookie banner or notice in minutes. Automatically scan cookies, and create policies to align with GDPR, CCPA, and…

1+ million installs 184 hooks