WP Manifestindependent plugin directory
manifest / utilities / dc-wp-header-footer-scripts

DC WP Header&Footer Scripts

A lightweight WordPress plugin to inject custom scripts into head, body open, and footer — no Google login, no external dependencies, no magic.

by DC · github.com/designcart/dc-wp-header-footer-scripts

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/designcart/dc-wp-header-footer-scripts/archive/refs/heads/main.zip

Long description (GitHub README – intro)

DC WP Header&Footer Scripts

DC WP Header&Footer Scripts is a minimal, developer-focused WordPress plugin for injecting custom scripts into the frontend markup — exactly where they belong.

It allows you to add scripts to:

  • <head> (wp_head)

  • right after <body> opens (wp_body_open)

  • page footer (wp_footer)

That’s it.
No Google API integration.
No OAuth.
No dashboards.
No upsells.

Why this plugin exists

Most “analytics” or “tracking” plugins try to do too much:

  • forced Google logins

  • OAuth flows that randomly fail

  • multiple plugins for GA, Meta Pixel, Hotjar, TikTok, etc.

  • heavy admin UI and background processes

In reality, all you need is a reliable way to place scripts in the correct locations.

This plugin was built to solve exactly that — with the smallest possible amount of code.

Key principles

  • ❌ No Google API integration

  • ❌ No OAuth authorization

  • ❌ No external services

  • ❌ No output buffering or HTML parsing hacks

  • ✅ One file

  • ✅ One responsibility

  • ✅ Official WordPress hooks only

  • ✅ Full control over injected code

Supported hooks

  • wp_head — scripts inside <head>

  • wp_body_open — scripts immediately after <body> (required for proper GTM noscript)

  • wp_footer — scripts at the end of the page

If your theme supports these hooks, the plugin works exactly as expected.
If it doesn’t — the issue is the theme, not the plugin.

Typical use cases

  • Google Tag Manager (script + noscript)

  • Google Analytics (GA4)

  • Meta / Facebook Pixel

  • Hotjar

  • TikTok, LinkedIn, custom JS snippets

  • Any tracking or marketing script

All handled by one plugin instead of many.

Who this plugin is for

  • Developers

  • Technical marketers

  • Performance-focused WordPress users

  • WooCommerce stores that need stable tracking

  • Anyone who prefers explicit control over automation

If you know what code you’re pasting, this plugin stays out of your way.

Requirements

  • WordPress 5.2+ (for wp_body_open)

  • A theme that correctly implements:

    <?php wp_head(); ?> <?php wp_body_open(); ?> <?php wp_footer(); ?>

Philosophy

One plugin.
One responsibility.
Zero magic.
Full control.

Plugin page Plugin dla Wordpress pozwalający na dodawanie skryptów do header i footer strony internetowej - DC WP Header&Footer Scripts

👨‍💻 author: Paweł Nosko