Title: Analytics Tracker
Author: Valeriu Tihai
Published: <strong>2016 年 2 月 12 日</strong>
Last modified: 2026 年 3 月 20 日

---

搜尋外掛

![](https://ps.w.org/analytics-tracker/assets/banner-772x250.png?rev=3474094)

![](https://ps.w.org/analytics-tracker/assets/icon-256x256.png?rev=3474094)

# Analytics Tracker

 由 [Valeriu Tihai](https://profiles.wordpress.org/valeriutihai/) 開發

[下載](https://downloads.wordpress.org/plugin/analytics-tracker.3.0.1.zip)

[即時預覽](https://tw.wordpress.org/plugins/analytics-tracker/?preview=1)

 * [詳細資料](https://tw.wordpress.org/plugins/analytics-tracker/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/analytics-tracker/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/analytics-tracker/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/analytics-tracker/#developers)

 [技術支援](https://wordpress.org/support/plugin/analytics-tracker/)

## 外掛說明

> If you like the plugin, feel free to [rate it](https://wordpress.org/support/view/plugin-reviews/analytics-tracker?rate=5#postform).
> Thank You!

Analytics Tracker utilizes the latest and greatest features of Google global site
tag (gtag.js) and makes it super easy to add tracking code on your blog.

Note: Google ended Universal Analytics (UA-) processing on July 1, 2023. We keep
UA tracking IDs for legacy compatibility, but for active reporting we strongly recommend
using Google Analytics 4 with a G-XXXXXXXX Measurement ID.

This is one of the simplest to use WordPress plugins to insert Google Analytics 
code on your websites built in WordPress.

Google Analytics is now the most widely used web analytics service on the Internet.

#### Features:

 * **GA4 Measurement ID setup** – Configure your Google tag with a valid GA4 Measurement
   ID (for example: G-XXXXXXXXXX).
 * **User ID (optional)** – Send an anonymous hashed user identifier for logged-
   in users.
 * **Enriched page_view event** – Adds contextual parameters for home, singular,
   taxonomy, author, search, and 404 pages.
 * **Comment Event (optional)** – Enable or disable the event sent when a comment
   becomes visible on your site.
 * **Minimal compatibility mode for non-GA4 IDs** – Loads basic gtag config without
   custom events.

> **Analytics Tracker on GitHub**
>  You can submit feature requests or bugs on [Analytics Tracker](https://github.com/valeriu/analytics-tracker)
> repository.

### Localization

You can translate Analytics Tracker on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/analytics-tracker).

## 螢幕擷圖

[⌊Google Analytics Settings⌉⌊Google Analytics Settings⌉[

Google Analytics Settings

## 安裝方式

In most cases you can install automatically from WordPress.org.

However, if you install this manually, follow these steps: 1. Upload the Analytics
Tracker plugin to your site; 2. Activate the plugin through the \’Plugins\’ menu
in WordPress; 3. Then enter your GA4 Measurement ID (G-XXXXXXXXXX); You’re done!

If you don’t have a GA4 Measurement ID yet, create a property in [Google Analytics](http://www.google.com/analytics)
and get your Measurement ID (for example: G-XXXXXXXXXX).

## 常見問題集

### How can I suggest a new feature, contribute or report a bug?

You can submit pull requests, feature requests and bug reports on [our GitHub repository](https://github.com/valeriu/analytics-tracker).

### What are the requirements to use this plugin?

You need an active Google Analytics account and obviously a WordPress blog.

### Where can I see the analytics report?

You can see your detailed analytics report in your [Google Analytics](http://www.google.com/analytics)
account.

### What data does the tracking snippet capture?

When you add either of these tracking snippets to your website, you send a pageview
for each page your users visit. Google Analytics processes this data and can infer
a great deal of information including:

 * The total time a user spends on your site.
 * The time a user spends on each page and in what order those pages were visited.
 * What internal links were clicked (based on the URL of the next pageview).

In addition, the IP address, user agent string, and initial page inspection performed
by the tracking library can be used to determine things like the following:

 * The geographic location of the user.
 * What browser and operating system are being used.
 * Screen size and whether Flash or Java is installed.
 * The referring site.

## 使用者評論

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

### 󠀁[Excellent Plugin](https://wordpress.org/support/topic/excellent-plugin-5409/)󠁿

 [Spere](https://profiles.wordpress.org/spere/) 2019 年 12 月 12 日

Stable, functional, and easy to implement.

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

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-1385/)󠁿

 [viktoras](https://profiles.wordpress.org/victortihai/) 2017 年 4 月 26 日

Very nice plugin and easy to use!

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/analytics-tracker/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Analytics Tracker〉的開發相關工作。

參與者

 *   [ Valeriu Tihai ](https://profiles.wordpress.org/valeriutihai/)

〈Analytics Tracker〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/analytics-tracker/contributors)
為這個外掛做出的貢獻。

[將〈Analytics Tracker〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/analytics-tracker)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/analytics-tracker/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/analytics-tracker/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/analytics-tracker/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/analytics-tracker/)。

## 變更記錄

#### 3.0.1

 * Added a WordPress Playground blueprint with a preconfigured GA4 Measurement ID
   for demo use.
 * Added a Playground admin notice to clarify that tracking runs in the background
   and should be verified with browser developer tools.
 * Removed unused legacy Scroll Depth vendor files from the plugin package.
 * Updated README wording to use tracking-library terminology instead of referencing
   analytics.js directly.

#### 3.0.0

 * Updated settings and documentation for GA4 Measurement ID.
 * Added settings sanitization callback for plugin options.
 * Added an optional setting to enable or disable the event sent when a comment 
   becomes visible on your site.
 * Improved uninstall routine for multisite installations.
 * Refined admin asset versioning and loading.

#### 2.0.1

 * Added compatibility with PHP 7.2

#### 2.0.0

 * Use Global Site Tag (gtag.js)
 * Deleted Force SSL

#### 1.1.1

 * Fixed XSS vulnerability on search event, thanks to Arjan Snaterse – https://www.
   uprise.nl

#### 1.1.0

 * Added tracking code for Accelerated Mobile Pages (Require AMP plugin https://
   wordpress.org/plugins/amp/)

#### 1.0.5

 * Fixed Event for Download, Email, Phone number and Outbound links

#### 1.0.4

 * Added event for Add a Comment
 * Added event for Scroll Depth
 * Fixed Options for Custom dimension

#### 1.0.3

 * Added Enhanced Link Attribution
 * Added Events for Download, Email, Phone number, Outbound links, Error 404, Search

#### 1.0.2

 * Added Force SSL
 * Added User ID
 * Added Anonymize IP
 * Added Display Features
 * Added Custom Dimensions

#### 1.0.1

 * Added my WordPress Themes
 * Fixed Regex for UA Code

#### 1.0.0

 * First Release

## 中繼資料

 *  版本 **3.0.1**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  語言
 * [English (Canada)](https://en-ca.wordpress.org/plugins/analytics-tracker/) 及
   [English (US)](https://wordpress.org/plugins/analytics-tracker/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/analytics-tracker)
 * 標籤:
 * [analytics](https://tw.wordpress.org/plugins/tags/analytics/)[ga4](https://tw.wordpress.org/plugins/tags/ga4/)
   [google analytics](https://tw.wordpress.org/plugins/tags/google-analytics/)[google tag](https://tw.wordpress.org/plugins/tags/google-tag/)
   [Measurement ID](https://tw.wordpress.org/plugins/tags/measurement-id/)
 *  [進階檢視](https://tw.wordpress.org/plugins/analytics-tracker/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/analytics-tracker/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/analytics-tracker/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/analytics-tracker/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/analytics-tracker/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/analytics-tracker/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/analytics-tracker/reviews/)

## 參與者

 *   [ Valeriu Tihai ](https://profiles.wordpress.org/valeriutihai/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/analytics-tracker/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://paypal.me/valeriu/25)