[WordPress] 外掛分享: Segment For WordPress

首頁外掛目錄 › Segment For WordPress
WordPress 外掛 Segment For WordPress 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
200+
安裝啟用
★★★★★
5/5 分(2 則評價)
1140 天前
最後更新
0%
問題解決
WordPress 5.6+ PHP 7.3.5+ v2.3.3 上架:2019-06-11

內容簡介

WordPress 的 Segment Analytics 外掛。免費整合 WooCommerce、Ninja Form 和 Gravity Form。
使用 Segment 官方的 PHP 程式庫進行伺服器端事件,以及許多其他功能。
我完全重寫這個外掛的上一個版本。
客戶端和服務器端追蹤。
客戶端事件在驗證時觸發(例如,提交表單)。
服務器端事件是預定且異步發生的,所以用戶不必等待處理這些事件,它不會使他們變慢。

整個外掛中有註釋來解釋不同的功能。

基於用戶自定義字段、電子郵件或 WP 用戶 ID 設置使用者 ID
內置 WooCommerce、Ninja Forms、Gravity Forms 和 WordPress 原生事件的支援。
重新命名事件,選擇在 Identify 調用中包含哪些特徵等等...
支援客戶端(JS API)和伺服器端追蹤(PHP API)
有能力過濾角色、自定義文章類型和管理區域
在追蹤調用中輕鬆包含 userID 和電子郵件屬性
有能力使用元鍵在識別調用中包含自定義的使用者特徵

鉤子

您可以使用以下過濾器,請返回正確的值。

“segment_for_wp_change_user_id” ($user_id):返回使用者 ID。
“segment_for_wp_change_user_traits” ($traits, $wp_user_id):返回一個關聯數組的特徵。
“segment_for_wp_change_event_properties” ($properties, $action, $data):返回一個關聯數組的屬性。
“segment_for_wp_change_product_properties” ($properties):返回一個產品屬性的關聯數組(適用於 WooCommerce)。
“segment_for_wp_change_order_properties” ($properties):返回一個訂單屬性的關聯數組(適用於 WooCommerce)。

樂意擴展它,讓我知道吧。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.3.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Segment For WordPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Segment Analytics for WordPress. Free WooCommerce, Ninja Form & Gravity Form integrations.
Uses Segment’s official PHP libraries for Server Side events, as well as a lot of other features functionality.
I completely rewrote this plugin from the previous version.
Client side and server side tracking.
Client side events fire upon validation (ie, for submissions)
Server side events are scheduled and happen asynchronously, so users don’t have to wait for processing of these events, it won’t slow them down.
There are annotations throughout the plugin to explain the different features.

Set a User ID based on user custom field, email, or WP user id
Built-in support for WooCommerce, Ninja Forms, Gravity Forms and WordPress native events.
Re-name events, choose what traits to include in Identify calls, etc…
Supports client side (JS API) and server-side tracking (PHP API)
Ability to filter out roles, custom post types and the admin area
Easily include userID and email properties in track calls
Ability to include custom user traits in identify calls using meta keys

Hooks
You can use the following filters, please return the correct values.

“segment_for_wp_change_user_id” ($user_id): Return a user id.
“segment_for_wp_change_user_traits” ($traits, $wp_user_id): Return an associative array of traits.
“segment_for_wp_change_event_properties” ($properties, $action, $data): Return an associative array of properties.
“segment_for_wp_change_product_properties” ($properties): Return an associative array of product properties (for WooCommerce).
“segment_for_wp_change_order_properties” ($properties): Return an associative array of order properties (for WooCommerce).

Happy to extend it, let me know.

延伸相關外掛

文章
Filter
Mastodon