Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
SOGO Add Script to Individual Pages Header Footer icon

SOGO Add Script to Individual Pages Header Footer

v3.9
by SOGO · 4.3 (31 reviews)

Simple plugin to add script to header and footer for individual pages & posts

20K+ active installs Updated Jan 20, 2020 Tested to 5.3.18
Try Demo Download
Pre-installed Ready in ~10s No card

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

SOGO Add Script to Individual Pages Header Footer screenshot

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:
  1. 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.
  2. 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

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…

LiteSpeed Cache icon

LiteSpeed Cache

4.8 · 7M+ installs

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

WooCommerce icon

WooCommerce

4.5 · 7M+ installs

Everything you need to launch an online store in days and keep it growing for years. From your…