[WordPress] 外掛分享: Halfborg Pixel Tracking for WooCommerce

首頁 › 外掛目錄 › Halfborg Pixel Tracking for WooCommerce
WordPress 外掛 Halfborg Pixel Tracking for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
5 天前
最後更新
—
問題解決
WordPress 5.0+ PHP 7.2+ v1.2.2 上架:2026-07-11

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Halfborg Pixel Tracking for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Halfborg Pixel Tracking for WooCommerce sends your store’s e-commerce events to Meta and Google from one plugin.
For Meta, it sends events both from the browser (Meta Pixel) and from your server (Facebook Conversions API), so conversions are still recorded when the browser pixel is blocked. The two halves share an event ID so Meta counts each event once.
For Google, it loads one Google tag at the top of every page and sends the full WooCommerce funnel to Google Analytics 4 and Google Ads.
Features

Meta: ViewContent, AddToCart, InitiateCheckout and Purchase, sent from both the browser and the server with deduplication
Google Analytics 4: view_item_list, select_item, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, with full item data
Google Ads: purchase conversion with transaction ID, new-customer flag and optional cart data for Merchant Center, dynamic remarketing (retail) with product IDs that match your Merchant Center feed, and optional enhanced conversions
Each Google purchase is reported once, even if the thank-you page is reloaded
Consent Mode defaults that deny storage in the EEA, UK and Switzerland until a consent tool updates them
Shop managers and administrators are left out of Google tracking by default
Works with WooCommerce’s High-Performance Order Storage (HPOS)
Works with the classic and the block-based cart and checkout, and with classic and block themes
Customer data is SHA-256 hashed before it is sent

How It Works

As a visitor browses, adds to cart and checks out, the plugin sends each step to the services you have configured
Google add-to-cart and remove-from-cart events are recorded from WooCommerce’s own cart, so they are captured whether the product was added from a product page, a shop page link, an AJAX button or a cart block, and when a quantity is changed
When a customer completes an order, the purchase is sent with its value, currency, items and order number
Customer data is hashed with SHA-256 before it leaves your server

External services
This plugin connects to Meta (Facebook) and Google to send e-commerce tracking events. This is the core purpose of the plugin and it cannot function without them. Each service is used only once you enter its ID on the settings screen.
1. Meta Conversions API (server-side)
The plugin sends conversion events from your server to the Meta Conversions API endpoint at https://graph.facebook.com. This is what allows conversions to be attributed to your Meta ad campaigns even when the browser pixel is blocked.
Events are sent when a visitor views a product (ViewContent), adds a product to the cart (AddToCart), begins checkout (InitiateCheckout), and completes an order (Purchase).
The data sent with these events is: the customer’s email address, phone number, first and last name, city, state, postcode and country — each of which is irreversibly hashed with SHA-256 before it leaves your server — together with the order or product value, the currency, the product IDs, the number of items, an event ID used for deduplication, the page URL, and the visitor’s IP address, browser user-agent and Meta browser cookies (_fbc and _fbp), which Meta requires in unhashed form for attribution.
Nothing is sent until you enter a Pixel ID and a Conversions API Access Token on the settings screen. If either is missing, no server-side event is sent.
2. Meta Pixel (browser-side)
When a Pixel ID is configured, the plugin loads Meta’s tracking script fbevents.js from https://connect.facebook.net into your visitors’ browsers, and the pixel reports page views and the events listed above to https://www.facebook.com. Each browser event carries the same event ID as its server-side counterpart so Meta can deduplicate the pair. A

Meta Terms of Service: https://www.facebook.com/legal/terms/
Meta Business Tools Terms: https://www.facebook.com/legal/terms/businesstools
Meta Privacy Policy: https://www.facebook.com/privacy/policy/

3. Google Analytics 4 and Google Ads (browser-side)
When a GA4 Measurement ID or Google Ads Conversion ID is configured, the plugin loads Google’s tag gtag.js from https://www.googletagmanager.com into your visitors’ browsers. Nothing is loaded for Google if both IDs are empty.
The tag reports page views and the following events to Google Analytics (google-analytics.com) and Google Ads (google.com, googleadservices.com, doubleclick.net): product list views, product clicks, product views, add to cart, remove from cart, cart views, begin checkout, shipping and payment method selection, and purchases. These events carry the product IDs, SKUs, names, categories, prices and quantities involved, the cart or order value, the currency, any coupon codes, and for purchases the order number, tax and shipping. If you enter a Merchant Center ID, the Google Ads purchase conversion also carries that ID, your feed’s country and language, the sold product IDs, prices and quantities, and the order discount. Google’s tag also collects the page URL, the visitor’s IP address, browser details and Google cookies.
If you turn on enhanced conversions, the purchase conversion also includes the customer’s billing email address, phone number, first and last name and street address, each SHA-256 hashed before it is added to the page, plus their unhashed city, state, postcode and country.
This service is provided by Google LLC. Please review their terms and privacy policy, and make sure your site’s own privacy policy and cookie consent notice disclose this tracking to your visitors:

Google Terms of Service: https://policies.google.com/terms
Google Analytics Terms of Service: https://marketingplatform.google.com/about/analytics/terms/us/
Google Privacy Policy: https://policies.google.com/privacy

延伸相關外掛

文章
Filter
Mastodon