Skip to main content

Meta Integration

Meta

Configure Meta Pixel/Conversions-style forwarding from Selwise events with mapping and filters.

Audience: Paid social and performance marketing teams using Meta events for optimization.

Critical: Meta provider key is meta and is configured via PUT /api/v1/sites/:siteId/integrations/meta.

Who This Page Is For

Use this page when you need consistent event forwarding to Meta with configurable mapping, filtering, and troubleshooting.

Quick Start (2-5 Minutes)

1

Configure pixel settings

Set pixel ID, access token, and advanced matching options.

PUT /api/v1/sites/:siteId/integrations/meta
2

Map required conversion events

Align Selwise events to Meta conversion event schema.

{ "eventMapping": { "purchase": "Purchase", "add_to_cart": "AddToCart" } }
3

Apply optional filters

Control which events are forwarded to Meta.

{ "eventFilters": { "purchase": { "enabled": true } } }
4

Run connectivity test

Validate channel health and credentials.

POST /api/v1/sites/:siteId/integrations/meta/test
5

Monitor delivery logs

Review failed deliveries and retry outcomes.

GET /api/v1/sites/:siteId/integrations/meta/logs?limit=50

Meta config example

{
"enabled": true,
"config": {
  "pixelId": "123456789012345",
  "accessToken": "META_ACCESS_TOKEN",
  "advancedMatching": true
},
"eventMapping": {
  "page_view": "PageView",
  "add_to_cart": "AddToCart",
  "purchase": "Purchase"
},
"testMode": false
}

Required Fields / Minimum Payload

FieldRequiredTypeUsed by eventsDescription
config.pixelIdRequiredstringMeta update payloadMeta pixel identifier.
config.accessTokenOptionalstringMeta update payloadAccess token for server-side forwarding contexts.
config.advancedMatchingOptionalbooleanMeta update payloadToggle advanced matching enrichment behavior.
eventMappingOptionalRecord<string,string>Meta update payloadCanonical-to-Meta event map.
testModeOptionalbooleanMeta update payloadLogs only; no downstream sends when true.

Currency Behavior

  • Meta payload currency is resolved with fallback order: event -> order -> site -> EUR.
  • Forwarded values keep source currency; no FX conversion is applied.
  • Avoid client-side fixed symbol/ISO assumptions when validating Meta payloads.

Event or Endpoint Decision Matrix

ScenarioUse ThisWhy
Configure/rotate Meta credentialsPUT /integrations/metaPrimary config write path.
Validate transport before launchPOST /integrations/meta/testConnectivity and auth check.
Inspect failuresGET /integrations/meta/logsTroubleshoot delivery and payload issues.
Need baseline mapping setGET /integrations/meta/mappingsDefault map as starting point.
Need temporary dry runtestMode=trueSafe validation in staging-like conditions.

Common Errors and Fixes

Meta test endpoint fails

Cause: Invalid pixel/access token combination.

Fix: Regenerate token and verify pixel ownership.

Purchase events missing in Meta

Cause: eventMapping missing purchase mapping or filter blocks event.

Fix: Add explicit purchase mapping and inspect eventFilters.

Duplicate-like signal patterns

Cause: Client and server pathways both forwarding without coordination.

Fix: Define single authority path or dedup strategy per event.

Events appear in logs only

Cause: testMode enabled.

Fix: Disable testMode for production sending.

Production Checklist

  • Meta credentials are validated through test endpoint.Required
  • Purchase and add-to-cart mappings are explicitly defined.Required
  • Advanced matching policy is reviewed for compliance requirements.Required
  • testMode is off in production.Required
  • Meta delivery logs are monitored post-release.Required

Next Steps