Title: Analytics for WordPress — by Segment
Author: Segment
Published: <strong>2013 年 2 月 1 日</strong>
Last modified: 2016 年 2 月 22 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Analytics for WordPress — by Segment

 由 [Segment](https://profiles.wordpress.org/segmentio/) 開發

[下載](https://downloads.wordpress.org/plugin/segmentio.1.0.13.zip)

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

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

## 外掛說明

Analytics for WordPress is the easiest way to integrate analytics and marketing 
tools into your WordPress site.

Instead of installing each tool individually, just install Segment’s WordPress plugin
and use Segment to integrate third-party analytics and marketing tools. Once you’re
setup, you can swap and add new analytics services with the flick of a switch!

Here’s how it works:
 * Install the Segment plugin * Segment will automatically 
start tracking how people are using your site – what pages they view and the information
they provide to you, like their emails * Go to the Segment control panel, and toggle
on any tool you want to try like Google Analytics, KISSmetrics and Facebook Audiences*
Segment will send this data along to each tool * The service is fully integrated
into your site–zero code required!

You can use Segment to try out more than a hundred vendors in a number of categories.
Here are just a few of our most popular integrations:
 * **Advertising** – AdRoll,
Google Adwords, Facebook Audiences, Twitter Ads, Quantcast, AppNexus * **Analytics**–
Google Analytics, KISSmetrics, Mixpanel, Amplitude, Chartbeat, Go Squared * **CRM**–
Salesforce, Zendesk, Gainsight, Frontleaf * **Email** – Customer.io, Outbound, Vero,
Marketo, MailChimp, Hubspot * **Optimization** – Optimizely, CrazyEgg, Visual Website
Optimizer

Get started with Analytics for WordPress today!

## 安裝方式

 1. Go to the **Plugins > Add New** page in your WordPress admin.
 2. Search for “Segment” and install **Analytics for WordPress — by Segment.io**.
 3. Click **Activate Plugin**.
 4. Go to **Settings > Analytics** and enter your Segment API key. (If you haven’t 
    signed up for Segment yet, now’s the time!)

That’s it! You can now turn on any analytics service with the flick of a switch 
in the Segment control panel.

## 常見問題集

  What analytics services does it support?

Tons! Google Analytics, Mixpanel, KISSmetrics, Chartbeat, Clicky, Intercom, CrazyEgg,
Customer.io, Gauges, GoSquared, HubSpot, Marketo, Olark, Quantcast, Vero, and more…
You can check out [the full list](https://segment.io/integrations).

  What user information does it record automatically?

We automatically identify users that are logged in to your WordPress site, and record
their `name`, `email`, `username`, and `website`, so you don’t need to write any
special code to handle that yourself. It also identifies commenters if it can.

  Which actions does it record automatically?

We automatically record the different types of WordPress pages your users can visit.
Things like “View About Page”, “View Post”, “View Author Page”, etc. So you don’t
have to worry about recording them yourself. Just by enabling the plugin you’ll 
already be recording all of those actions.

  Can I turn off the automatic event tracking?

Yup! You can also turn off specific events, in case you only want a few.

  Can I ignore logged-in users?

Yup! You can even _just_ ignore Administrators or Editors too.

  I’m a developer, what should I know?

Lots of new goodies for developers in the 1.0.0 release!

So very much. The two biggest enhancements for developers are the introduction of
the `segment_get_current_user_identify` and `segment_get_current_page_track` filters.
As a developer, you can hook into these filters and add any sort of conditional 
logic you want to track any event on a page, or customize the user identification
system to hook into your own user system as needed. Super extensible!

Beyond that, we’ve completely refactored the plugin to use all of the appropriate
WordPress APIs (Like the Settings API) and have added a easily extendable abstract
class for eCommerce platforms. On top of all of that, all of our filters, classes,
functions and methods are fully documented inline.

Need to add custom settings? By hooking into our `segment_default_settings` and `
segment_settings_core_validation` filters, you can quickly and easily add your own
settings to the Segment plugin.

## 使用者評論

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

### 󠀁[Contains bugs and isn’t maintained](https://wordpress.org/support/topic/contains-bugs-and-isnt-maintained/)󠁿

 [qfrery](https://profiles.wordpress.org/qfrery/) 2017 年 3 月 21 日 2 則留言

This plugin contains many bugs and is not maintained at all. Some developpers helped
them to improve the plugin on github and they didn’t even take time to have a look
at their work…

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

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-880/)󠁿

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

Amazing service, simplifies you’re tracking.

 [ 閱讀全部 6 則使用者評論 ](https://wordpress.org/support/plugin/segmentio/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Analytics for WordPress — by Segment〉的開發相關工作。

參與者

 *   [ Segment ](https://profiles.wordpress.org/segmentio/)
 *   [ Justin Sainton ](https://profiles.wordpress.org/justinsainton/)

[將〈Analytics for WordPress — by Segment〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/segmentio)

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

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

## 變更記錄

#### 1.0.6

 * Bump snippet to version 3.0.0
 * Fix for category retrieval bug

#### 1.0.5

 * Add context information to page calls.

#### 1.0.4

 * Fixed identify() method to only be called for logged-in users and commenters.

#### 1.0.3

 * Fixed deployment logic

#### 1.0.2

 * Fixed deployment logic

#### 1.0.1

 * Fixed fatal error when tracking WooCommerce products.

#### 1.0.0

 * Total refactor for WordPress plugin best practices.
 * Addition of several helpful filters.
 * Now sends category data for posts.
 * New options to allow you to track user logins.
 * Added eCommerce tracking for WP eCommerce and WooCommerce.
 * Added Intercom Secure Mode support.

#### 0.5.6

 * Fixed a bug with non-static methods in newer versions on PHP.

#### 0.5.5

 * Fixed a bug where admins weren’t being properly ignored.

#### 0.5.3

 * Fixed a bug that occured in older versions of PHP.

#### 0.5.2

 * Added `'analytics-wordpress'` `library` option.

#### 0.5.1

 * Fixed a bug where the user permission level would be output.

#### 0.5.0

 * Added setting to ignore users by permission level (eg. Administrators).

#### 0.4.3

 * Made our page view events `noninteraction` in Google Analytics.

#### 0.4.0

 * Added settings to turn off automatic event tracking.

#### 0.3.3

 * Fixed a bug that occured on uncommon page types.

#### 0.3.2

 * Fixed a bug that occured when installing straight from WordPress admin.

#### 0.3.0

 * Exposed a global `Analytics` class for custom tracking.

#### 0.2.0

 * Added identifying commenters.
 * Added tracking events for different page types.
 * Bug fixes.

#### 0.1.0

 * Initial release!

## 中繼資料

 *  版本 **1.0.13**
 *  最後更新 **10 年前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.0.38**
 *  語言
 * [English (US)](https://wordpress.org/plugins/segmentio/)
 * 標籤:
 * [analytics](https://tw.wordpress.org/plugins/tags/analytics/)[google analytics](https://tw.wordpress.org/plugins/tags/google-analytics/)
   [kissmetrics](https://tw.wordpress.org/plugins/tags/kissmetrics/)[Segment.io](https://tw.wordpress.org/plugins/tags/segment-io/)
   [web analytics](https://tw.wordpress.org/plugins/tags/web-analytics/)
 *  [進階檢視](https://tw.wordpress.org/plugins/segmentio/advanced/)

## 評分

 4.3 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Segment ](https://profiles.wordpress.org/segmentio/)
 *   [ Justin Sainton ](https://profiles.wordpress.org/justinsainton/)

## 技術支援

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

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