WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Anand Kumar v2.4.2

Header and Footer Scripts

Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just before closing tag.

Header and Footer Scripts

The facts

Rating
4.6★ from 58
Active installs
200k+
Price
Free
Last updated
1 Feb 2026
Added
Feb 2014
Requires WP
4.6
Tested up to
WP 6.9.7
Requires PHP
5.6
Downloads
1,726,365

Our analysis

AI-assisted

Header and Footer Scripts is a WordPress plugin that allows you to insert scripts and styles into your website's header and footer. It supports various script types, including HTML, JavaScript, and CSS, making it suitable for adding tracking codes like Google Analytics or Facebook Pixel, as well as custom styles.

The plugin is lightweight and straightforward to use, requiring you to simply add the appropriate HTML code. It also allows for the insertion of scripts on individual posts or pages and is compatible with WooCommerce.

Best for: This plugin is suitable for website owners who need to add tracking codes or custom styles without technical complexity.

What it does well

  • Easily insert scripts and styles into header and footer
  • Supports HTML, JavaScript, and CSS
  • Allows specific scripts for individual posts or pages
  • Compatible with WooCommerce
  • Lightweight with no ads

Where it falls short

  • Cannot insert or execute PHP codes
  • Support may be needed if codes do not appear

Verdict

Header and Footer Scripts provides a simple solution for script insertion, making it a practical choice for users needing to enhance their site's functionality.

From the developer

Anand Kumar's own description of Header and Footer Scripts, lightly tidied.

An essential WordPress plugin to easily insert scripts and styles (like Google Analytics, CSS, etc.) into your website’s header and footer.

Looking for a way to add Google Analytics, Facebook Pixel, or custom tracking code to your website’s header or footer?

Header and Footer Scripts is a simple yet powerful plugin that lets you inject code—such as Google Analytics, custom CSS, Facebook Pixel, and chat widgets—directly into your site’s header (<head>) or footer.

No bloat, no ads. This lightweight plugin simply does what it says: inserts code into your header and footer efficiently.

All you have to do is add the appropriate HTML code.

Don’t forget to wrap your code with proper tags.

<script type="text/javascript">
YOUR JS CODE HERE
</script>

Or for CSS:

<style type="text/css">
YOUR CSS CODE HERE
</style>

Why use this plugin:

  • Insert scripts globally into the header and footer of your entire website.
  • Supports all script types including HTML, JavaScript, and CSS.
  • Add specific scripts to the header of individual posts or pages.
  • To insert code to Custom Post Type [New Feature].

The plugin should be compatible with WooCommerce.

What it does not offer

  • You can’t insert/execute PHP codes.

Almost all WordPress themes support this “Header and Footer Scripts” plugin. If the codes are not appearing in your site [ask for support] or look at your theme file if they have standard wp_head and wp_footer hooks.

Important Links

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page &amp; Coming Soon Page. Enable Under Construction Mode in seconds &amp; sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

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

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon &amp; under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)