WPForgeHub
Micro Tools & Enterprise AI

ForgeHub Header & Footer Scripts

$0.00 – $129.00

Inject header, body-open, and footer scripts cleanly with per-page overrides, Safe Mode protection, and conditional Page, WooCommerce, Device, and Role rules.

100% Free & Open Source • GPLv2+ • v1.0.0

Download Free — No Account Required

Full core functionality with zero artificial limits or nags. Download directly from GitHub Releases or WordPress.org.

What it solves

ForgeHub Header & Footer Scripts lets you add Google Analytics 4, Google Tag Manager, Meta Pixel, site verification meta tags, chat widgets, and custom CSS/JS to your site without editing theme files or risking lost code on theme updates.

Every newly launched site needs tracking tags, verification headers, and custom scripts—yet bloated snippet plugins slow down your admin panel or break layouts with no escape hatch. ForgeHub Header & Footer Scripts stays lightweight, 100% local, and includes built-in Safe Mode protection.

Key features (Included in Free)

  • Three Site-Wide Injection ZonesCleanly inject code into Header (wp_head), Body Open (wp_body_open), and Footer (wp_footer) with individual enable/disable toggles.
  • Custom Hook PrioritiesControl exact execution order (priority 1 to 999) for each injection zone independently.
  • Exclude Logged-In AdministratorsKeep your Google Analytics and ad pixel data clean by automatically skipping script output for administrators.
  • Per-Page / Per-Post Override MetaboxAdd page-specific header or footer scripts, or disable global scripts entirely on dedicated landing pages.
  • One-Click Quick-Insert TemplatesInsert ready-to-edit GA4, GTM Head, GTM Body, and site verification meta templates locally with zero external API calls.
  • Safe Mode Kill Switch & Emergency URL BypassPause all injected scripts globally in one click, or append ?wpfh_ci_safe_mode=1 while logged in as an admin to recover from a broken snippet.
  • Strict Capability GuardRaw script saving is strictly gated by manage_options and unfiltered_html.

Screenshots

ForgeHub Header & Footer Scripts settings screen

Privacy, BYOK & Zero-Nag guarantee

Zero server load on our side: nothing is routed through WPForgeHub. Where an AI provider is used, you bring your own key (BYOK) and requests go straight from your site to the provider you choose. We do not collect or sell your data, and we never show aggressive upgrade banners or locked tabs in wp-admin. All scripts and styles load locally from the plugin folder, with no external CDN and no Powered by links. Every form is protected with nonces and capability checks.

Setup

  1. Upload the forgehub-code-injector folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu.
  3. Navigate to Settings > Header & Footer Scripts.
  4. Paste your scripts into the Header, Body Open, or Footer zones and click Save Script Settings.

Frequently asked questions

Will my scripts disappear when I update or switch themes?

No. All scripts are stored safely in your site's database options and injected via standard hooks (wp_head, wp_body_open, wp_footer), completely independent of your active theme.

What happens if I paste a broken script that breaks my page layout?

Append ?wpfh_ci_safe_mode=1 to any URL while logged in as an administrator to bypass script output immediately, or enable the Safe Mode (Kill Switch) toggle in Settings.

Can I stop Google Analytics or Meta Pixel from tracking my own admin visits?

Yes. Enable Exclude Administrators under Delivery & Safety Controls and all injected scripts will be skipped for logged-in administrators.

Does this plugin send any data to external servers?

No. ForgeHub Header & Footer Scripts runs 100% locally with zero external dependencies, zero tracking, and zero SaaS lock-in.

Who is allowed to save raw HTML or JavaScript snippets?

Only administrators who hold both manage_options and unfiltered_html capabilities can save raw scripts.

Can I try Pro before buying?

Yes. The Pro sandbox at pro.wpforgehub.com runs every plugin with Pro unlocked. Local, .test and staging sites do not use up your license seats.

What licenses are available?

The Free edition is 100% open source (GPLv2+) with no account required. Optional Pro & Priority Support licenses are available for 1 site, 5 sites and Unlimited, billed yearly or lifetime — see the Optional Pro section below.

Which PHP and WordPress versions are supported?

PHP 7.4 to 8.3 and the current WordPress release. Multisite is supported.

Do you offer refunds?

Yes. Optional Pro purchases are covered by a 14-day money-back guarantee handled by Freemius, our reseller. Write to support@wpforgehub.com for help.

Free vs Optional Pro

FeatureFreePro
Three Site-Wide Injection ZonesCleanly inject code into Header (wp_head), Body Open (wp_body_open), and Footer (wp_footer) with individual enable/disable toggles. Included Included
Custom Hook PrioritiesControl exact execution order (priority 1 to 999) for each injection zone independently. Included Included
Exclude Logged-In AdministratorsKeep your Google Analytics and ad pixel data clean by automatically skipping script output for administrators. Included Included
Per-Page / Per-Post Override MetaboxAdd page-specific header or footer scripts, or disable global scripts entirely on dedicated landing pages. Included Included
One-Click Quick-Insert TemplatesInsert ready-to-edit GA4, GTM Head, GTM Body, and site verification meta templates locally with zero external API calls. Included Included
Safe Mode Kill Switch & Emergency URL BypassPause all injected scripts globally in one click, or append ?wpfh_ci_safe_mode=1 while logged in as an admin to recover from a broken snippet. Included Included
Strict Capability GuardRaw script saving is strictly gated by manage_options and unfiltered_html. Included Included
Unlimited Conditional Snippets ManagerCreate, organize, pause, and prioritize named snippets independently.Optional Pro Included
Page, Post & URL Targeting RulesTarget Homepage, Blog Index, Single Posts, Single Pages, Specific Post/Page IDs, or URL path fragments.Optional Pro Included
WooCommerce Funnel RulesFire conversion and retargeting pixels exclusively on Shop, Product, Cart, Checkout, Order Received (Thank You), or My Account pages.Optional Pro Included
Device & User Role TargetingDeliver scripts only to Desktop or Mobile/Tablet visitors, and filter by Guests, Logged-In Users, or specific user roles.Optional Pro Included
JSON Import / ExportMigrate all global zones and conditional snippets between staging and production sites in one click.Optional Pro Included

Optional Pro & Priority Support

The Free core is complete and yours forever. Upgrade only if you need automation, agency scale, or priority support.

1 Site
$19/yr
Standard Pro
Popular
5 Sites
$39/yr
Best Value
Unlimited
$69/yr
Agencies
14-Day Money-Back Guarantee • Instant License Delivery • 256-Bit SSL Encryption
ForgeHub Header & Footer Scripts
ForgeHub Header & Footer Scripts $0.00 – $129.00