Title: GA Link Tracker
Author: project107
Published: <strong>2013 年 4 月 9 日</strong>
Last modified: 2014 年 9 月 4 日

---

搜索插件

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

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

# GA Link Tracker

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

[下载](https://downloads.wordpress.org/plugin/ga-link-tracker.zip)

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

 [支持](https://wordpress.org/support/plugin/ga-link-tracker/)

## 描述

A tiny WordPress plugin to track events of link clicks in the main content area 
of the site. Install it and forget about it.

Links will show up under Events in the Analytics site, and will have a category 
of ‘Links’, a label of ‘PageID: CURRENT_PAGE_URI’, and the value of the href of 
the link being tracked.

Example of code added to properly formed URLs in main post content:

    ```
    <a onclick="ga('send', 'event', 'Links', 'click', 'http://twitter.com/chris_dickow');" href="http://twitter.com/chris_dickow">@chris_dickow</a>
    ```

The above example assumes the href of the link is: `http://www.myurl.com/my_blog/
my_link.html`

## 安装

 1. Upload `GA-Link-Tracker.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. All done!

## 常见问题

  How do I configure this?

Short answer: You don’t. There are no configurable options to this script, as it
simply appends event tracker behavior to your links.

  What other data does it collect?

None.

  What else does it do?

Nothing.

## 评价

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

### 󠀁[label of 'PageID: CURRENT_PAGE_URI' isn't working](https://wordpress.org/support/topic/label-of-pageid-current_page_uri-isnt-working/)󠁿

 [dxlab](https://profiles.wordpress.org/dxlab/) 2016 年 9 月 3 日 1 回复

So disappointed. In our installation the ‘PageID: CURRENT_PAGE_URI’ isn’t working.
Instead of using the current uri it uses the first one used on the page and applies
this to every link on the page. e.g. on all-of-my-pages.html it applied the following
to each link. <a onclick="ga('send', 'event', 'Links', 'click', 'http://first-link-
used-in-page.html');" href="current-page.html" target="_blank">

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/ga-link-tracker/reviews/)

## 贡献者及开发者

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

贡献者

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

[帮助将「GA Link Tracker」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ga-link-tracker)

### 对开发感兴趣吗?

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

## 更新日志

v2.2 – Fixed conflict with abbr tag

v2.1 – Minor bugfix

v2.0 – Updated to use Google’s newer analyitcs.js file

v1.0 – Initial release.

## 额外信息

 *  版本 **2.2**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ga-link-tracker/)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[events](https://cn.wordpress.org/plugins/tags/events/)
   [google analytics](https://cn.wordpress.org/plugins/tags/google-analytics/)[link tracker](https://cn.wordpress.org/plugins/tags/link-tracker/)
   [links](https://cn.wordpress.org/plugins/tags/links/)
 *  [高级视图](https://cn.wordpress.org/plugins/ga-link-tracker/advanced/)

## 评级

 3.7 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/ga-link-tracker/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/ga-link-tracker/)

## 捐助

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

 [ 捐助此插件 ](http://www.project107.net)