@walkeros/web-destination-meta
v3.2.0
Published
Meta pixel web destination for walkerOS
Maintainers
Readme
Meta Pixel Destination for walkerOS
This package provides a Meta Pixel (formerly Facebook Pixel) destination for walkerOS. It sends events to Meta Pixel to track visitor activity and conversions for Facebook and Instagram advertising campaigns.
walkerOS follows a source → collector → destination architecture. This Meta Pixel destination receives processed events from the walkerOS collector and transforms them into Meta's Pixel API format, handling conversion events, custom events, and audience building data to optimize your Meta advertising campaigns.
Installation
npm install @walkeros/web-destination-metaQuick Start
Configure in your Flow JSON:
{
"version": 3,
"flows": {
"default": {
"web": {},
"destinations": {
"meta": {
"package": "@walkeros/web-destination-meta",
"config": {
"settings": { "pixelId": "1234567890" },
"loadScript": true
}
}
}
}
}
}Or programmatically:
import { startFlow } from '@walkeros/collector';
import { destinationMeta } from '@walkeros/web-destination-meta';
const { elb } = await startFlow({
destinations: [
{
destination: destinationMeta,
config: {
settings: { pixelId: '1234567890' },
loadScript: true,
},
},
],
});Configuration
| Name | Type | Description | Required | Example |
| ------------ | --------- | ----------------------------------------------------------------- | -------- | -------------- |
| pixelId | string | Your Meta Pixel ID from Facebook Business Manager | Yes | '1234567890' |
| loadScript | boolean | Whether to automatically load the Meta Pixel script (fbevents.js) | No | true |
Type Definitions
See src/types/ for TypeScript interfaces.
Related
Contribute
Feel free to contribute by submitting an issue, starting a discussion, or getting in contact.
License
This project is licensed under the MIT License.
