@elbwalker/destination-node-meta
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Meta Conversion API (CAPI) destination for walkerOS

Made to be used with node-client 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 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',
        },
      },
    },
  },
};

Node usage

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.

Contribute

Feel free to contribute by submitting an issue, starting a discussion or getting in contact.

Package Sidebar

Install

npm i @elbwalker/destination-node-meta

Weekly Downloads

54

Version

2.1.1

License

MIT

Unpacked Size

9.32 MB

Total Files

10

Last publish

Collaborators

  • alexanderkirtzel