Title: Coremetrics Tracking
Author: maltpress
Published: <strong>2011 年 3 月 17 日</strong>
Last modified: 2012 年 11 月 29 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/coremetrics.svg)

# Coremetrics Tracking

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

[下载](https://downloads.wordpress.org/plugin/coremetrics.zip)

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

 [支持](https://wordpress.org/support/plugin/coremetrics/)

## 描述

This plugin provides users of Coremetrics tracking to create the appropriate page
and event tags for their blogs.

As well as setting core data such as user ID, you can assign common WordPress events
with event points or create your own custom page view tags using common WordPress
page and post attributes.

For full documentation, contact your Coremetrics account manager.

## 安装

 1. Upload the ‘coremetrics’ directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Complete the core settings in the Coremetrics menu

## 常见问题

  I don’t use Coremetrics but want to track my site. What should I do?

Coremetrics is a powerful enterprise-level statistics package. You can find out 
more at http://www.coremetrics.com/.

  How can I find my user ID/script locations/other setting?

The core settings page offers a script preview. Compare this to your other sites
using Coremetrics (as it’s likely that you’ll be using it across more than just 
your blog) to make sure the settings are correct. Alternatively, submit a Coremetrics
support ticket and paste your preview code into the ticket to check it’s OK.

  I’ve put all my settings in but for some reason my user ID always starts with 
a 6

You’ve probably set your code to test – in the core settings menu, select “Live”
in the test override drop-down.

  Not all the attributes I want to see are showing. Why not?

Certain attributes won’t be available on all page or post types. In particular, 
listing pages (archives, the home page, and so on) won’t show many attributes – 
because WordPress would, if these attributes were included, take the value from 
the last added post. Check if the attribute is showing “Listing page or search”.
If that’s the case, check it on a different page type (post or page) and you should
see the attribute appear. Alternatively, you may see “This attribute not available
in this WP version”. If this is the case, you should consider upgrading to the most
recent version of WordPress.

  How do I add my own events?

You need to set an event ID (which has spaces removed, and is used only to call 
the event with the short code or PHP), an event name (which shows up in the tracking)
and points for the initial 2 steps created. Click “add event” and you’ll see it 
listed. Click the “edit” box next to the event you wish to edit and click the “edit/
delete” button to make changes to it. You’ll then be able to edit the points for
each stage as well as add new stages if you want more than 2. Finally, you’ll also
get your short code and PHP code for each of the event stages.

To use the short code, simply copy it and paste it into a post.

  Only the first stage of my custom event is being tracked. What’s wrong?

You need to add the short code (or PHP function) for each step of the event. Some
plugins with forms will allow you to redirect to a custom “thank you” page… you 
should add the second stage tracking to this page.

  It works in the admin system, but not on the live site

Check you’ve got wp_footer() in your footer.php file (you should always have this!).
There’s a function to check that it’s there, but double check.

  There’s a big red box telling me I don’t have wp_footer(); in my theme, but I 
do!

Sorry! It’s entirely possible that there’s something about your server setup which
means you get false negatives. You can dismiss this message if you’re happy that
everything is working as expected – you can always test again by going to the Coremetrics
settings page and clicking the button at the bottom of the page. You’ll be told 
if wp_footer(); is found or not.

  It’s not working on Multisite. Why not?

This version of the plugin is not compatible with Multisite. A new version is coming
soon.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ maltpress ](https://profiles.wordpress.org/maltpress/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.2

 * Updated Javascript tags to remove language attribute – now validates in HTML5

#### 1.2.1

 * You can now dismiss the wp_footer() warning – certain themes and server setups
   might give false positives.

#### 1.2

 * Plugin now warns if wp_footer() is missing (which will stop the plugin working)
 * General code tidy-up, now runs clean with WP_DEBUG on, deprecated bits removed

#### 1.1

 * Fixed bug to allow multiple user IDs in test mode (semi-colon separated)
 * Added custom events

#### 1.0

 * Plugin launched

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/coremetrics/)
 * 标签
 * [statistics](https://cn.wordpress.org/plugins/tags/statistics/)[tracking](https://cn.wordpress.org/plugins/tags/tracking/)
 *  [高级视图](https://cn.wordpress.org/plugins/coremetrics/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/coremetrics/reviews/)

## 贡献者

 *   [ maltpress ](https://profiles.wordpress.org/maltpress/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/coremetrics/)