Block Integrations
Pixel
The Pixel Integration Block allows you to seamlessly track user interactions and events by embedding a Meta Pixel into your Agent’s flow. Here’s how it works and how to configure it.
How the Pixel Block Works
When a Pixel Block is added to your flow:
- Initialization:
The Meta Pixel is initialized, and aPageView
event is automatically tracked as soon as the page loads.
- Event Tracking:
Specific events, such as a form submission or a button click, are tracked when the block is executed.
Configuration Steps
1. Finding my Meta Pixel ID
- Go to your Meta Events Manager and select the Pixel you want to use.
- Copy the Pixel ID from the settings page.
2. Adding the Pixel ID
- Enter your Meta Pixel ID (e.g.,
73627907634
) into the input field in the configuration box. - This ID connects your Agent flow to your Meta Ads account for event tracking.
3. Event Tracking
- Toggle the “Track event” option to enable event tracking.
- Specify the event name (e.g.,
Lead
) in the dropdown or input field. - Optionally, click Add parameter to pass additional data (like user information) with the event.
4. How to checkl if the Pixel is working
- Use the Meta Events Manager to verify that your Pixel is firing correctly.
- Select your Pixel and navigate to the Test Events tab.
- Check for the
PageView
event in the Events Received section for any custom events you have set up.
Example Use Case
Flow Example:
Step | Description |
---|---|
Hi there! | The Agent greets the user. |
What’s your name? | The Agent asks for the user’s name. |
Collect Name | User inputs their name, which is stored. |
Track Lead | Tracks the event “Lead” with user details. |
Event Tracking:
In the example image:
- Pixel ID:
73627907634
is used. - The
Lead
event is tracked whenever the block is executed. - Optional parameters can include user data (e.g.,
Name
orEmail
).
Best Practices
- Test Your Pixel: Use the Meta Events Manager to ensure the Pixel is working and events are logged correctly.
- Unique Event Names: Use descriptive and unique event names to avoid confusion in tracking.
- Add Parameters: Include user data, such as
Name
orEmail
, to make your event tracking more insightful.