@elbwalker/destination-web-meta-pixel
v2.3.1
Published
Meta pixel web destination for walkerOS
Downloads
143
Maintainers
Readme
Meta Pixel (former Facebook Pixel) web destination for walkerOS
Made to be used with walker.js from walkerOS.
More detailed information and examples can be found in the documentation.
🤓 Usage
Start by setting up the config for the destination. Optional fields as comments. Destinations can be used via node or directly in the browser.
Configuration
Learn more about the destinations in general and read the detailed Meta Pixel configuration.
const config = {
custom: {
pixelId: '1234567890',
currency: 'EUR',
pageview: true,
},
mapping: {
// e.g. order
entity: {
// e.g. complete
action: {
custom: {
id: 'data.id',
name: 'data.title',
track: 'Purchase',
value: 'data.revenue',
},
},
},
},
};
Node usage
npm i --save @elbwalker/destination-web-meta-pixel
import { elb } from '@elbwalker/walker.js';
import destinationMetaPixel from '@elbwalker/destination-web-meta-pixel';
elb('walker destination', destinationMetaPixel, config);
Contribute
Feel free to contribute by submitting an issue, starting a discussion or getting in contact.