Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…
About SOGO Add Script to Individual Pages Header Footer
This plugin allows you to easily add JavaScript code to the header or footer of individual pages or custom post types. You can use it to add conversion codes, Google re-marketing codes, and more. The latest version also adds support for terms/category pages and the WooCommerce shop page.Screenshots

Frequently asked questions
What is SOGO Add Script to Individual Pages Header Footer?
SOGO Add Script to Individual Pages Header Footer is a WordPress plugin that allows you to add JavaScript code to the header and footer of individual pages, posts, or custom post types. It also supports adding scripts to all pages, terms/category pages, and WooCommerce shop pages. The plugin has been tested with Gutenberg.
What are some common uses for this plugin?
You can use this plugin to add conversion codes to thank you pages, Google re-marketing code to individual pages or the entire site, and Google Analytics. It also allows for excluding individual pages from displaying header and footer scripts.
How do I use this plugin?
After installation, navigate to "settings" - "Header Footer Settings" to configure the plugin. When adding code, you need to paste it with the script tag, for example: <script> your js code </script>.
Does this plugin support WooCommerce?
Yes, version 2.3 added support for the WooCommerce shop page.
Can I limit scripts to specific post types?
Yes, the plugin supports limiting scripts to only certain post types or pages.
Changelog
1.0
- initial version
1.1
- resolve header script not being echo to the page
1.2
- resolve issue with WordPress Version 3.7
1.2.1
- added usage description
1.3
- add site wide header footer script (e.g. for Google analytics or remarking code)
1.3
- add 2 new features:
- option to limit the script per post type – we added a checkbox in the option which give you the ability to select on
which page post custom post type the header or footer script will be printed. - option to exclude a page post custom post type from header and or footer script. yo will find 2 new checkbox on each page
which enable you to exclude the script from this individual page
1.6
change labels
2.2
fix bug :When I paste the script into an individual post from a category then the same script is appearing in category listing page as well.
(thanks to Shane (@ugrasen1989))
2.3
fix bug : Added support for WooCommerce shop page .
(thanks to Birdie )
3.2
output the individual script after the generic script to support google conversion
3.8
Test support for last WordPress version
3.9
add nonce check for terms update