Skip to main content

Meta Pixel

Web Source code Package

Meta Pixel (formerly Facebook Pixel) tracks visitor activity and conversions for Facebook and Instagram advertising campaigns. The destination automatically sends events to Meta Pixel via fbq function. All you need to do is install the destination, and optionally map events to Meta's format. walkerOS takes care of loading the script and the function calls.

Installation

npm install @walkeros/web-destination-meta

Setup

import { startFlow } from '@walkeros/collector';
import { destinationMeta } from '@walkeros/web-destination-meta';

const { collector, elb } = await startFlow({
destinations: {
meta: {
code: destinationMeta,
config: {
settings: {
pixelId: '1234567890', // Your Meta Pixel ID
},
loadScript: true, // Load Meta Pixel script automatically
},
},
},
});

Configuration reference

PropertyTypeDescriptionMore
pixelId*stringYour Meta Pixel ID from Facebook Business Manager
loadScriptbooleanWhether to automatically load the Meta Pixel script (fbevents.js)
* Required fields

Example

Settings
Result

Mapping examples

tip

The code examples are interactive. You can edit the code to generate your individual event mapping.

Learn more aboot Meta Pixel's Standard-Events.

ViewContent

Event
Mapping
Result

AddToCart

Event
Mapping
Result

InitiateCheckout

Event
Mapping
Result

Purchase

Event
Mapping
Result
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.