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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/ga-link-tracker/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/ga-link-tracker/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/ga-link-tracker/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.0.38**
 *  語言
 * [English (US)](https://wordpress.org/plugins/ga-link-tracker/)
 * 標籤
 * [analytics](https://tw.wordpress.org/plugins/tags/analytics/)[events](https://tw.wordpress.org/plugins/tags/events/)
   [google analytics](https://tw.wordpress.org/plugins/tags/google-analytics/)[link tracker](https://tw.wordpress.org/plugins/tags/link-tracker/)
   [links](https://tw.wordpress.org/plugins/tags/links/)
 *  [進階檢視](https://tw.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)