Title: Tracking Script Manager
Author: JHipkin
Published: <strong>2014 年 8 月 1 日</strong>
Last modified: 2025 年 5 月 5 日

---

搜索插件

![](https://ps.w.org/tracking-script-manager/assets/banner-772x250.jpg?rev=1299827)

![](https://ps.w.org/tracking-script-manager/assets/icon-256x256.png?rev=1299830)

# Tracking Script Manager

 作者：[JHipkin](https://profiles.wordpress.org/jhipkin/)

[下载](https://downloads.wordpress.org/plugin/tracking-script-manager.2.0.14.zip)

 * [详情](https://cn.wordpress.org/plugins/tracking-script-manager/#description)
 * [评价](https://cn.wordpress.org/plugins/tracking-script-manager/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/tracking-script-manager/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/tracking-script-manager/#developers)

 [支持](https://wordpress.org/support/plugin/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.

[https://youtu.be/8Vy0MJzJ22M](https://youtu.be/8Vy0MJzJ22M)

## 屏幕截图

 * [[
 * 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.

## 评价

![](https://secure.gravatar.com/avatar/b4362f1a324aae2f13c390417e7adaba2263916e52ec17031a15edf623e4c67d?
s=60&d=retro&r=g)

### 󠀁[Deleting scripts every now and then](https://wordpress.org/support/topic/deleting-scripts-every-now-and-then/)󠁿

 [giuliordcom](https://profiles.wordpress.org/giuliordcom/) 2022 年 1 月 27 日

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

![](https://secure.gravatar.com/avatar/51b58b33cc5c8d8fc9f2d3a2aa591268e34607653dcbf958baededf3c829cd8c?
s=60&d=retro&r=g)

### 󠀁[Great Plugin for Pages but Not Endpoints](https://wordpress.org/support/topic/great-plugin-for-pages-but-not-endpoints/)󠁿

 [kennkelly](https://profiles.wordpress.org/lionchaser/) 2017 年 3 月 14 日

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.

![](https://secure.gravatar.com/avatar/1d01ad1a00ed0447a0a871cc85b790954b8d7b160f05a6fad07ac8ce2ac0283e?
s=60&d=retro&r=g)

### 󠀁[Tracking Scripts Manager](https://wordpress.org/support/topic/tracking-scripts-manager-1/)󠁿

 [jbrannegan](https://profiles.wordpress.org/jbrannegan/) 2016 年 9 月 3 日

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.

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/)

## 贡献者及开发者

「Tracking Script Manager」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ JHipkin ](https://profiles.wordpress.org/jhipkin/)
 *   [ eltodd ](https://profiles.wordpress.org/eltodd/)
 *   [ red8developers ](https://profiles.wordpress.org/red8developers/)
 *   [ bkueker ](https://profiles.wordpress.org/bkueker/)
 *   [ Jason Yingling ](https://profiles.wordpress.org/yingling017/)
 *   [ Sajib Talukder ](https://profiles.wordpress.org/stalukder03/)

[帮助将「Tracking Script Manager」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tracking-script-manager)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/tracking-script-manager/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/tracking-script-manager/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/tracking-script-manager/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/tracking-script-manager/)。

## 更新日志

#### 2.0.14

 * Test WP 6.8.1

#### 2.0.13

 * Test WP 6.5.5

#### 2.0.12

 * Test WP 6.5.3

#### 2.0.11

 * Test WP 6.4

#### 2.0.10

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

#### 2.0.9

 * Security update

#### 2.0.8

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

#### 2.0.7

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

#### 2.0.6

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

#### 2.0.5

 * Adding fallback for wp_body_open *

#### 2.0.4

 * Changing capability for which admin notices appear

#### 2.0.3

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

#### 2.0.2

 * Fixing a typo

#### 2.0.1

 * Fixed issue when updating scripts to new version

#### 2.0.0

 * 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

#### 1.1.6

 * Adding in ability for text translations

#### 1.1.5

 * Updating wording throughout the plugin for better continuity

#### 1.1.4

 * Another admin menu tweak

#### 1.1.3

 * Admin menu tweak

#### 1.1.2

 * Removed some unnecessary hooks

#### 1.1.1

 * Fixed a few PHP warnings from last update

#### 1.1

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

#### 1.0.9

 * Cleaning up script enqueuing

#### 1.0.8

 * Fixed issues causing some conflicts with WP styling

#### 1.0.7

 * Fixed CSS issues

#### 1.0.6

 * Fixed some php warnings

#### 1.0.5

 * Fixed decoding issue

#### 1.0.4

 * Fixed plugin URI

#### 1.0.3

 * Fixes redirect issue

#### 1.0.2

 * Fixes issue with tabs

#### 1.0.1

 * Fixes a Javascript issue

#### 1.0.0

 * Initial plugin release

## 额外信息

 *  版本 **2.0.14**
 *  最后更新：**1 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/tracking-script-manager/)
 * 标签
 * [adwords](https://cn.wordpress.org/plugins/tags/adwords/)[analytics](https://cn.wordpress.org/plugins/tags/analytics/)
   [conversion pixel](https://cn.wordpress.org/plugins/tags/conversion-pixel/)[conversion tracking](https://cn.wordpress.org/plugins/tags/conversion-tracking/)
   [Facebook Pixel](https://cn.wordpress.org/plugins/tags/facebook-pixel/)
 *  [高级视图](https://cn.wordpress.org/plugins/tracking-script-manager/advanced/)

## 评级

 4.1 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/tracking-script-manager/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tracking-script-manager/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tracking-script-manager/reviews/)

## 贡献者

 *   [ JHipkin ](https://profiles.wordpress.org/jhipkin/)
 *   [ eltodd ](https://profiles.wordpress.org/eltodd/)
 *   [ red8developers ](https://profiles.wordpress.org/red8developers/)
 *   [ bkueker ](https://profiles.wordpress.org/bkueker/)
 *   [ Jason Yingling ](https://profiles.wordpress.org/yingling017/)
 *   [ Sajib Talukder ](https://profiles.wordpress.org/stalukder03/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/tracking-script-manager/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://red8interactive.com/)