Made to be used with node-client from walkerOS.
More detailed information and examples can be found in the documentation.
Start by setting up the config for the destination. Optional fields as comments. Destinations can be used via node or directly in the browser.
Learn more about the destinations in general and read the detailed Meta Conversion API.
import type { Custom } from '@elbwalker/destination-node-meta';
const config: Custom = {
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',
},
},
},
},
};
npm i --save @elbwalker/destination-node-meta
import destinationMeta from '@elbwalker/destination-node-meta';
elb('walker destination', destinationMeta, config);
Mapping Mock
For easier debugging add
if (response.error) console.log('🚀 ~ response:', response);
to the node_modules/facebook-nodejs-business-sdk/dist/cjs
on line 261 within
the xmlHttpRequest
.
Feel free to contribute by submitting an issue, starting a discussion or getting in contact.