
Event Mapping
Here’s how Edgee events map to Meta CAPI events:Edgee event | Meta CAPI Event |
---|---|
Page | PageView |
Track | Name of the event |
User | Lead |
User Identification
When you make auser
call, Edgee stores the user’s data (user_id, anonymous_id, and properties) on the device. This enables proper attribution for subsequent page views and events.
Getting Started
To integrate Meta CAPI into your Edgee project:- Open the Edgee console and navigate to your project’s Components.
- Select “Add a component” and choose
edgee/meta-capi
from the list of available components. - Enter the following credentials:
Meta Access Token
: Your Meta CAPI access tokenMeta Pixel ID
: Your Meta Pixel IDMeta Test Event Code
(Optional): For testing your implementation
- Click Save to complete the setup.
Component Name
When configuring the component in your Edgee Data Layer or within SDK calls, useedgee/meta-capi
as the component name:
Testing Your Implementation
- Set up your test events in Meta Events Manager
- Add your test event code to the component configuration
- Send test events through Edgee
- Verify events in Meta Events Manager’s Test Events tab
Use Meta’s Test Event Code during implementation to avoid affecting your actual data and ad campaigns.
Step by Step Set up Guide For Meta CAPI
Implementing the Meta Conversion API via Edgee is simple and straightforward. The next sections will guide you on:- Creating a Meta CAPI
- Retrieving your access token
- Configuring Meta CAPI in Edgee
Create a Meta Conversion API Pixel
- Go to Meta Events Manager
- Choose your business account.
-
Click “Connect Data”
-
Select Web
-
Name it, assign a website if needed.
Get Your Meta Capi Access Token
- In Events Manager, select your Pixel
- Go to Settings
- Scroll to Conversions API → click “Generate access token”
- Copy this access token securely (you’ll need for setting up in Edgee platform)
Configure Meta CAPI in Edgee
- Log in to your Edgee account and navigate to your project.
- Go to Components (see documentation if needed).
-
Select Meta Capi, then paste your Conversion Pixel ID and access token into the required field.