Facebook Pixel
You can track Popup events with Facebook Pixel to measure widget performance and build retargeting audiences. This guide covers the three event types and how to set up your Pixel.
Tracking Popup Events
There are three event types you can track:
- Widget Display — fires when a widget appears on screen
- Optins — fires when a visitor submits a form
- Button Clicks — fires when a visitor clicks a link, close, or custom button
Tracking Widget Displays
To track when a widget is shown, open the Display Rules tab and enable the Tracking Pixel Code switch. Paste your Facebook Pixel event code in the field that appears.
!Display Rules tab with Tracking Pixel Code
Tracking Optins
To track form submissions, edit the widget and click the submit button. Open On Submit Actions, then add Execute JavaScript and paste your Pixel event code.
!Execute JavaScript for optin tracking
Tracking Button Clicks
For link, close, or custom buttons, click the button to edit it. Open On Click Actions, then add Execute JavaScript and paste your Pixel event code.
!Execute JavaScript for click tracking
Facebook Pixel Setup
If you have not set up Facebook Pixel yet, follow these steps.
Step 1: Create Your Pixel
Go to facebook.com/events_manager and create a new Pixel.
Step 2: Install the Pixel Code
Copy the base Pixel code and add it to your website's header.
Step 3: Add Event Codes to Your Widgets
Use the standard Facebook Pixel event codes in your widget actions. Common events include:
!Complete event tracking setup
Verifying Your Pixel
Install the Facebook Pixel Helper Chrome extension to verify that your Pixel is firing correctly. The extension shows which events are being tracked on any page.
!Facebook Pixel Helper verification
Need more help?
If you've worked through this and still need a hand, contact support — we'll dig in with you.