Find it on GitHub: /edgee-cloud/snapchat-capi-component
Snapchat Conversions API (CAPI) allows you to send web events directly to Snapchat from your server, ensuring reliable data tracking even with ad blockers or browser limitations. With Edgee’s edge integration, you can now send these events directly from the edge, improving both reliability and performance.
Event Mapping
Here’s how Edgee events map to Snapchat CAPI events:| Edgee event | Snapchat CAPI Event |
|---|---|
| Page | PageView |
| Track | Name of the event |
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 Snapchat CAPI into your Edgee project:- Open the Edgee console and navigate to your project’s Components.
- Select “Add a component” and choose
edgee/snapchat-capifrom the list of available components. - Enter the following credentials:
Snapchat Access Token: Your Snapchat CAPI access tokenSnapchat Pixel ID: Your Snapchat Pixel IDSnapchat 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, usesnapchat_capi as the component name:
Testing Your Implementation
- Set up your test events in Snapchat Events Manager
- Add your test event code to the component configuration
- Send test events through Edgee
- Verify events in Snapchat Events Manager’s Test Events tab
Use Snapchat’s Test Event Code during implementation to avoid affecting your actual data and ad campaigns.