Title: Wai Metrics
Author: cproetti
Published: <strong>2024 年 11 月 29 日</strong>
Last modified: 2026 年 6 月 20 日

---

搜尋外掛

![](https://ps.w.org/wai-metrics/assets/banner-772x250.png?rev=3292374)

![](https://ps.w.org/wai-metrics/assets/icon-256x256.png?rev=3283220)

# Wai Metrics

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

[下載](https://downloads.wordpress.org/plugin/wai-metrics.1.1.4.zip)

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

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

## 外掛說明

The Wai Metrics plugin seamlessly integrates external analytics trackers into your
WooCommerce site, capturing the complete eCommerce purchase journey—from product
views to cart additions, checkout initiation, and final purchase completion. It 
supports Google Analytics GA4, Google Ads Tag for conversions, and Facebook Meta
Pixel. Additionally, Wai incorporates cost-of-goods-sold calculations into its tracking
events, allowing for more precise measurement of conversion values against ad spend.
This COGS feature is particularly beneficial for stores with significant variations
in margins and prices, optimising marketing efforts and ROI by preventing automated
bidding strategies from disproportionately targeting higher-priced items.

This plugin helps you quickly setup your conversion trackers and Meta Pixel on your
WooCommerce site.

**Features include:**
 – **Google Analytics GA4 Integration:** Automatically send
page views, product views, cart additions, and checkout events. – **Facebook Meta
Pixel Tracking:** Track user engagement and optimize your Facebook advertising campaigns
with real-time data. – **Google Ads Tracking:** Enhance ad performance with conversion
tracking on order completion. – **Cost Of Goods Sold:** Includes COGS calculations
in the “value” or reported metrics. Setup your cost prices on a per product basis.–**
WooCommerce Optimised:** Designed specifically for seamless integration into WooCommerce.

**GDPR and Privacy:**
 The plugin itself does not add any cookies but it does insert
the trackers from GA4 and Meta which use cookies of their own and have data privacy
concerns. This plugin does not currently have cookie concent and GDPR privacy integration.
Feature coming soon.

### External Services

This plugin integrates with the following services when the plugin is configured
to do so.

 1. **Google Analytics GA4**
 2.  * **Purpose:** Tracks website events incl eCommerce data.
     * **Data Sent:** Includes product views, cart additions, purchases, and checkout
       data.
     * **Privacy Policy:** [Google Privacy Policy](https://policies.google.com/privacy)
 3. **Facebook Meta Pixel**
 4.  * **Purpose:** Tracks user behaviour for advertising and marketing analytics.
     * **Data Sent:** Includes product views, cart additions, purchases, and checkout
       data.
     * **Privacy Policy:** [Meta (Facebook) Privacy Policy](https://www.facebook.com/policy.php)
 5. **Google Ads Tag**
 6.  * **Purpose:** Tracks user behaviour for Google Ads conversions.
     * **Data Sent:** Includes purchase data, order value, and transaction IDs.
     * **Privacy Policy:** [Google Ads Policy](https://policies.google.com/technologies/ads)

## 安裝方式

 1. **From WordPress Dashboard:**
 2.  * Navigate to ‘Plugins’ > ‘Add New’.
     * Search for ‘WooCommerce Analytics Integration’.
     * Click ‘Install Now’, then ‘Activate’.
 3. **Configure Plugin:**
 4.  * Go to ‘Settings’ > ‘Wai Metrics’ tab.
     * Enter your Tracking IDs for Google Analytics GA4, Facebook Meta Pixel, and Google
       Ads.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

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

[將〈Wai Metrics〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wai-metrics)

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

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

## 變更記錄

#### 1.1.4

 * Bumped “Tested up to” for WordPress 7.0 compatibility.
 * Added site-wide Google Ads tag configuration when a Google Ads Tag is enabled.
 * Updated GA4 events to explicitly route to the configured GA4 Measurement ID.
 * Fixed Google Ads conversion tracking so it can operate independently when GA4
   is not enabled.
 * Fixed the Enhanced Conversions phone field to correctly use phone_number.

#### 1.1.3

Fixed Google Ads Tag validation to accept conversion labels containing hyphens.

#### 1.1.2

 * Bumped “Tested up to” for WordPress 6.9 compatibility.
 * Fixed a WooCommerce AJAX add-to-cart edge case by ensuring the add_to_cart_fragments
   filter always returns fragments.

#### 1.1.1

Fixed a bug where cost price meta was truncated to the first character when saving
simple products. Also used WooCommerce parsing function of numbers to normalise 
locale number syntax.

#### 1.1.0

 * New wai_tracking_item_id filter allows overriding the product ID reported in 
   events.
 * Meta Pixel now sends content_ids as a JSON array instead of a comma-separated
   string to facilitate non-integer product IDs.

#### 1.0.4

Fixed a fatal error on checkout when customer carts had only zero-value items in
their cart. Now if their cart contains only no-value items then the begin-checkout
event will be omitted.

#### 1.0.3

 * Bumped “Tested up to” to 6.8.
 * Added plugin icon (128×128 & 256×256 PNG).

#### 1.0.2

Fixed a validation error that prevented use of Google Ads Tags that contained an
underscore from being saved in the plugin settings.

#### 1.0.1

Version 1.0.1 includes critical updates to align with WordPress guidelines: replaced
direct tags with proper WordPress functions (wp_enqueue_script and wp_add_inline_script),
added validations to handle null product scenarios, updated the namespace from Wai
to WaiMetrics, and enhanced documentation to explicitly detail integrations with
external services like Google Analytics GA4, Meta Pixel, and Google Ads Tag. These
changes improve code compliance, robustness, and transparency.

#### 1.0.0

Initial release. Full integration with Google Analytics GA4, Facebook Meta Pixel,
and Google Ads conversion tracking.

## 中繼資料

 *  版本 **1.1.4**
 *  最後更新 **3 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wai-metrics/)
 * 標籤:
 * [analytics](https://tw.wordpress.org/plugins/tags/analytics/)[Conversion Tracker](https://tw.wordpress.org/plugins/tags/conversion-tracker/)
   [ga4](https://tw.wordpress.org/plugins/tags/ga4/)[woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wai-metrics/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

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

## 參與者

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

## 技術支援

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

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