Skip to main content

Meta Conversion API

Source code Package

The Meta Conversion API (CAPI) destination is used to send server-side events from walkerOS to the Facebook Conversion API. It handles the data transformation and ensures that your events are correctly formatted for the Facebook Conversion API.

Basic example

Here's a simple example to demonstrate how to configure the Meta destination:

import { destinationMeta } from '@elbwalker/destination-node-meta';

await elb('walker destination', destinationMeta, {
custom: {
accessToken: 's3cr3tc0d3',
pixelId: '1234567890',
// debug: true,
// partner: 'walkerOS',
// testCode: 'TEST00000',
},
mapping: {
// e.g. order
entity: {
// e.g. complete
action: {
name: 'Purchase',
custom: {
id: 'data.id',
name: 'data.title',
value: 'data.total',
},
},
},
},
});

Dependencies

Before using the Meta destination, ensure you have: