Tracking Script Manager


Tracking Script Manager lets you manage tracking scripts in WordPress, including tags, schema markup, javascript, or any other script. For example, analytic scripts, including Google Analytics, are easy to manage using Tracking Scripts Manager.

Scripts can be added to the header, footer, or after the body tag.

The after-body tag placement may require an update to your theme files. See the plugin’s page for more information.

A script can appear globally or on specific pages or posts.

Tracking Script Manager helps you manage advertising tags, social media tracking and retargeting scripts, conversion pixels, Facebook and AdWords pixels, schema markup, javascript, and scripts for marketing automation, e-commerce, or any other desired action.

We added the ability to control when a script expires with this version, which is helpful for ad campaign scripts.


  • Control Description
  • Using the «After » script location.
  • View your Tracking Scripts.
  • Add a new Tracking Script to a specific post or page (including custom post types).


  1. Upload the ‘tracking-script-manager’ folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Click on the ‘Tracking Scripts Manager’ options page.


How do I add a script?

You can add a script by navigating to the Tracking Scripts Manager menu in the sidebar, and selecting Add New Tracking Script.

How do I delete a script?

On the Tracking Script Manager menu in the sidebar, you can delete a script like you would a normal post.

How do I reorder scripts?

Inside the script post, in the right hand sidebar underneath the publish options; there is an order field. Lower numbers mean higher priority.

Using the body location

To use the body script location, you will need to add a line of PHP to directly after the opening <body> tag in your theme’s files. Typically this can be found in header.php but can vary theme to theme.

<?php do_action('wp_body_open'); ?>

After that line is added to your theme, when creating or editing a script; you can select the «After <body>» script location for that script to appear.


27. januar, 2022
Every now and then the tracking scripts get deleted. It also happens something very strange from time to time: I see the list of tracking scripts I added, but when I enter in each one of them, the sections (where the scripts are added) are blank, as if there is no code written anywhere; sometimes, though, even if the sections appear blank, the scripts continue to work (checked the db and they are still there, visible in the backend but not in the frontend)! Zero reliability. Look for other options


3. desember, 2019
I saved a head script for a specific page. After deleting the «specific script placement» at the bottom and saving this change, the specific page comes back. you have to delete the whole script and set up a new one to change «specific script placement» if you have set one before.
14. mars, 2017
If you’re just wanting to add a script to a specific page this is great. However if you need to add a script to an endpoint i.e. thank you end point in WooCommerce checkout this will not get you there.
3. september, 2016
Within minutes after adding this plugin to our site, we were easily able to globally include tracking parameters. I recommend and endorse this straightforward and efficient plugin.
Les alle 8 vurderinger

Bidragsytere og utviklere

“Tracking Script Manager” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.




  • Test WP 6.5.5


  • Test WP 6.5.3


  • Test WP 6.4


  • Remove old version admin notice
  • Fix specific script page placement not working


  • Security update


  • Add code editor syntax highlight
  • Extend Script expiration date functionality


  • Fixed a bug that caused scripts to be deactivated
  • Fixed a JS bug in admin views
  • Admin notice added


  • Feature add: Scripts expiry date
  • Updates made to script posts to save empty values for target page and script block


  • Adding fallback for wp_body_open *


  • Changing capability for which admin notices appear


  • Adding in a couple descriptions for controls, and a new screenshot


  • Fixing a typo


  • Fixed issue when updating scripts to new version


  • Converted scripts into a post type for easier management
  • Added background processing for upgrading current scripts to the updated version
  • Added a hook that can be included after the body in the theme to allow scripts to be pulled in to that location


  • Adding in ability for text translations


  • Updating wording throughout the plugin for better continuity


  • Another admin menu tweak


  • Admin menu tweak


  • Removed some unnecessary hooks


  • Fixed a few PHP warnings from last update


  • Major Upgrade: Allows for scripts to be added to a specific page


  • Cleaning up script enqueuing


  • Fixed issues causing some conflicts with WP styling


  • Fixed CSS issues


  • Fixed some php warnings


  • Fixed decoding issue


  • Fixed plugin URI


  • Fixes redirect issue


  • Fixes issue with tabs


  • Fixes a Javascript issue


  • Initial plugin release