After you've placed the pixel your website, add events to track specific actions people take on your website.
Events are actions that happen on your website (like when someone makes a purchase). To track an event, you'll need to place a piece of code on your website to help Facebook understand that someone has taken an action.
Set up events on your website
- Go to the Pixels tab in Events Manager.
- Click Set Up Pixel.
- Click Manually Install the Code Yourself.
- Click Continue.
- Click Install Events.
- Click the toggle icon next to an event you'd like to track.
- Select Track Event on Page Load or Track Event on Inline Action.
- Track Event on Page Load: Choose this option if the action you care about can be tracked when someone lands on a certain page, like a confirmation page after completing a purchase.
- Track Event on Inline Action: Choose this option if the action you want to track requires someone to click something (like an add to cart or purchase button).
- Add event parameters, like Conversion Value or Currency, to measure additional information about your event (Recommended)
- Copy this event code and paste it on the relevant page of your site. Be sure not to modify the pixel code you've already placed in the header of your website.
- For page load events: place the code just below the closing header section of the page (for many websites, this will be right after the opening <body> tag).
- For inline action events: add the event code between script tags next to the action you want to track (like a button).
If you'd like your Facebook pixel to fire on specific button clicks, you'll have to update the code to tie an event to an action. Learn more in our developers site, under the Track In-Page Events section.
You've now finished setting up an event on your website. Repeat these steps for any other event listed that you'd also like to track.
Don't see the event you want to track?
If you want to track events not listed here, then see how to use custom events. Unlike the events featured above, custom events can't be used for tracking and optimization without additional action.