=== AddonLogic Header Footer Script Inserter ===
Contributors: snehalpancholi
Tags: header scripts, footer scripts, analytics, google tag manager, verification
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Insert verification tags, analytics snippets, and custom scripts into the head, body-open, or footer — globally or per post/page.

== Description ==

Header Footer Script Inserter provides three clean injection points for raw HTML/scripts:

* **Head** — priority 1, ideal for verification meta tags and early analytics (GA4, GTM snippet)
* **Body Open** — fired by wp_body_open, ideal for GTM noscript fallback
* **Footer** — priority 999, ideal for chat widgets and non-critical scripts

Per-post/page overrides allow you to add scripts to individual posts or pages from the editor meta box, in addition to the global scripts.

**Use cases:**

* Google Search Console / Bing Webmaster verification meta tags
* Google Tag Manager `<script>` in head + `<noscript>` in body
* Google Analytics GA4 snippet
* Facebook Pixel
* Intercom, Crisp, Tidio chat widgets
* Custom analytics or A/B testing tools

== Installation ==

1. Upload the `header-footer-script-inserter` folder to `/wp-content/plugins/`
2. Activate the plugin
3. Go to **Settings → Header Footer Scripts** to add global scripts
4. Optionally open any post/page and use the "Header/Footer Scripts (This Page)" meta box for page-specific scripts

== Frequently Asked Questions ==

= Does this support the GTM noscript body tag? =
Yes. Use the "Body Open Scripts" field. It requires your theme to call `wp_body_open()` immediately after the opening `<body>` tag (all modern themes do this).

= Can I add scripts to specific posts only? =
Yes. Open the post/page in the editor and use the "Header/Footer Scripts (This Page)" meta box at the bottom.

== Changelog ==

= 1.0.0 =
* Initial release
