The Very Easy Headers and Footers Inserter is a lightweight, free WordPress plugin designed to simplify the process of adding meta tags, tracking scripts, and custom code snippets to your website. Whether you need to insert Google Analytics, Tag Manager, Matomo, or custom JavaScript, this plugin enables you to do so without directly modifying your theme files.
This plugin is ideal for website administrators, marketers, and developers who prefer a secure, error-free method of injecting scripts without the risk associated with editing PHP or core theme templates.
Key Features and Functionality
The Very Easy Headers and Footers Inserter seamlessly integrates with WordPress, allowing scripts to be injected into three key areas of your site’s code:
1. HEAD Section Insertion
The HEAD section is where search engines and browsers expect to find critical meta tags, such as:
- SEO meta descriptions and keywords
- Social media Open Graph tags
- Verification codes (Google Search Console, Bing Webmaster Tools)
- CSS or JavaScript files that need to load early
By pasting your scripts into the Insert Header field, the plugin ensures that your code is placed exactly where it needs to be without touching your theme’s header.php
file.
2. After the Opening BODY Tag
Certain tracking tools, like Google Tag Manager, require their scripts to be positioned immediately after the opening <body>
tag to function correctly. The plugin’s Insert Body section prioritises scripts here, maintaining full compatibility with popular tracking and analytics platforms.
3. FOOTER Section Insertion
For performance optimisation, non-critical scripts can be loaded in the footer. This approach reduces page load times and improves Core Web Vitals scores. The Insert Footer section supports asynchronous and deferred JavaScript, helping enhance both user experience and SEO performance.
Benefits of Using Very Easy Headers and Footers Inserter
- No Coding Required: Ideal for users who prefer not to modify theme files manually.
- Theme-Agnostic: Works with any WordPress theme, including custom-built designs.
- Future-Proof: Updates to your theme won’t overwrite your tracking codes, as scripts are managed separately through the plugin.
- Performance-Friendly: Supports asynchronous and deferred script loading to improve site speed.
- Secure: Reduces the risk of PHP errors that can occur when editing core files.
How to Install and Configure
Download the Plugin Here:
Download Very Easy Headers and Footers Inserter v1.0

Upload to WordPress:
- Go to Dashboard > Plugins > Add New
- Click Upload Plugin, select the ZIP file, and click Install Now
- Once installed, click Activate

Configure the Plugin:
- Navigate to Settings > Very Easy Headers and Footers Inserter
- You’ll find three input fields: Insert Header, Insert Body, and Insert Footer
- Paste your scripts into the relevant sections
- Click Save Changes

Verify Implementation:
- Visit your website and right-click anywhere on the page
- Select View Page Source
- Use
Ctrl + F
to search for part of your script (e.g., GTM-XXXX
) to confirm it’s been correctly injected
Troubleshooting Common Issues
While the plugin is designed to be straightforward, here are some common issues and solutions:
1. Scripts Not Appearing in the Page Source
- Clear Your Cache: If you’re using a caching plugin, clear the cache after saving changes. Browser caches can also delay visible updates, so consider using Incognito mode to verify.
- Theme Conflicts: Ensure your active theme properly supports
wp_head()
, wp_body_open()
, and wp_footer()
hooks. If these hooks are missing, scripts won’t be injected.
- Plugin Conflicts: Disable other header/footer management plugins to rule out conflicts.
2. Google Tag Manager Not Firing Correctly
- Check Placement: Ensure the main GTM script is in the HEAD and the noscript iframe is in the BODY section, as recommended by Google.
- Verify with Tag Assistant: Use the Google Tag Assistant extension to diagnose GTM issues.
3. Performance Issues
- Too Many Scripts in HEAD: Move non-essential scripts to the FOOTER section and use
async
or defer
attributes where possible.
- Minification Plugins: If you’re using optimisation plugins that minify HTML/JS, exclude the injected scripts to prevent conflicts.
Comments: