[WordPress] 外掛分享: Datalayer Tracking via DATA Reshape for WooCommerce

首頁外掛目錄 › Datalayer Tracking via DATA Reshape for WooCommerce
WordPress 外掛 Datalayer Tracking via DATA Reshape for WooCommerce 的封面圖片
全新外掛
安裝啟用
尚無評分
2 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v0.8 上架:2026-05-10

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.8) 或搜尋安裝

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

原文外掛簡介

DATA Reshape for WooCommerce is a bridge between your WooCommerce store and the DATA Reshape platform. It emits structured ecommerce events (product_viewed, product_added_to_cart, cart_viewed, checkout_started, checkout_completed, plus the mid-funnel checkout steps) into DATA Reshape’s reshape.push() queue, and DATA Reshape’s loader — served from a tracking subdomain you control — handles delivery and routing onward to GA4, Meta, TikTok, and every other destination you have connected.
Because the loader is served first-party, events are not blocked by ad blockers, ITP, or the usual third-party-script defences that break conventional gtag/fbq/ttq setups. You do not need to fire those calls in parallel — DATA Reshape routes a single event to every connected destination with the correct platform-specific name and field mapping.
This plugin does not replace analytics tools like Google Analytics or Meta Pixel; it replaces the fragile transport layer underneath them. Event processing, routing, and deduplication all happen inside DATA Reshape.
An active DATA Reshape plan is required to use this plugin. All tracking logic, integrations, and event delivery are managed through the DATA Reshape platform.
What’s coming next: API Events
A second tab in the settings UI (“API Events”) is reserved for data that can’t flow through the storefront browser at all — admin-recorded phone-call orders, sales agent activity, and historical customer/order backfill imported into DATA Reshape via API. This is not a CAPI-style server-side mirror of the browser events (those already get through reliably thanks to the first-party loader); it covers genuinely different data sources. Configuration UI is dormant in this version and will be wired up in a later release.
Features
Core Features

Global enable/disable for the integration
DATA Reshape library integration
Subdomain tracking support
Fully compatible with WooCommerce HPOS (High-Performance Order Storage)

Events

Product Viewed
Product Added to Cart (AJAX + POST + GET fallbacks)
Product Removed from Cart
Cart Viewed
Checkout Started
Checkout Steps (Billing Address Added, Shipping Detail Added, Payment Method Selected — legacy checkout only)
Checkout Completed
Consent integration — DATA Reshape natively detects most CMPs (Cookiebot, OneTrust, Termly, etc.) and Google Consent Mode v2, with no plugin-side wiring required
Single “Grant consent by default” toggle for stores that don’t run a CMP — fires DATA Reshape’s native consent_updated push at session start so events process immediately
drswc_consent_payload filter for stores that want to drive the consent object explicitly from PHP
Plain user data in reshape payloads (DATA Reshape hashes server-side)

Advanced Tracking

Spec-shaped products with price_base + price; tax_included / tax_percent only when WooCommerce tax is enabled
Variations carry parent_id / parent_name / parent_sku / parent_url
Order-level and product-level coupons emitted in dedicated coupons[] arrays
Shipping methods and payment methods emitted as structured arrays on Checkout Completed
Categories emitted as both category (primary) and categories[] with name+id
Stock status, product type, creation timestamp, image, and gallery images

Extensibility

drswc_event_payload — filter the full event envelope before push
drswc_product_payload — inject GTIN/MPN/EAN, predicted values, custom properties per product
drswc_user_payload — augment user identity (pre_purchase or purchase source)
drswc_consent_payload — replace or inject the consent object

Reliability Enhancements

Handles non-AJAX add-to-cart flows
Handles redirect-based add-to-cart (?add-to-cart=)
Cache-safe identity hydration — PII never inlined into cacheable HTML
Sticky user identity model (loader caches first-seen user, subsequent events inherit)
Safe execution timing for low overhead

Configuration
Integration Setup

Enable Integration (master switch)
Tracking Subdomain (the first-party host serving DATA Reshape’s loader)
Library ID
Built-in “Check tracking endpoint” health check

Events

Master switch for browser-delivered events
Per-event toggles (so events you handle via custom code can be disabled individually)
“Grant consent by default” toggle — off by default (let DATA Reshape auto-detect your CMP / Google Consent Mode); on if you don’t run a CMP and want events processed immediately

API Events

Reserved for the upcoming admin-recorded events sync (phone-call orders, etc.) and historical customer/order backfill. Not yet active.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon