Analytics WooCommerce Optional
Headless Meta Pixel
Full Meta Pixel integration for headless stores. Proxy browser events to the Conversions API (CAPI) with automatic PII hashing, event deduplication, and WooCommerce purchase tracking.
Features
REST endpoint for frontend pixel initialization
Server-side Conversions API (CAPI) forwarding
SHA-256 hashing of all PII (email, name, phone, address)
Event deduplication via matching event_id (browser + server)
Automatic WooCommerce purchase tracking on order status change
Per-event toggles and test event code support
API Endpoints
| Method | Path |
|---|---|
| GET | /headless-meta-pixel/v1/config |
| POST | /headless-meta-pixel/v1/track |
API Example
// Track event via Conversions API
const response = await fetch(
"https://store.example.com/wp-json/headless-meta-pixel/v1/track",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
event_name: "AddToCart",
event_id: "evt_abc123", // for deduplication
custom_data: {
currency: "INR",
value: 1499.0,
content_ids: ["SKU-001"],
content_type: "product",
},
}),
}
); FAQ
How does event deduplication work?
Your frontend sends events with an event_id. The /track endpoint forwards the same event_id to CAPI. Meta deduplicates events with matching IDs, so each conversion is counted once.
Is PII handled securely?
All personally identifiable information (email, name, phone, address) is SHA-256 hashed before being sent to Meta, as required by the Conversions API specification.
More Plugins
Headless Auth
AuthenticationOTP and password authentication with JWT tokens
WooCommerce Optional 6 endpoints
Headless Clarity
AnalyticsMicrosoft Clarity session recordings and heatmaps
1 endpoint
Headless Fuzzy Find
SearchWeighted, fuzzy product search with autocomplete
Requires WooCommerce 2 endpoints
Headless Google Analytics
AnalyticsGA4 with Measurement Protocol and WooCommerce tracking
WooCommerce Optional 1 endpoint