Pixels and Events
Pixels and Events
The Meta Pixel (formerly known as the Facebook Pixel) is a piece of code that you add to your
website to track user behavior. It helps businesses track conversions, optimize ad campaigns,
and build targeted audiences for future advertising.
The Pixel collects data when a user interacts with your website, such as visiting a page or
completing an action (e.g., making a purchase). This data is then sent to Meta's ad platform,
allowing you to retarget visitors, track actions, and measure the success of your ads.
Example: If a user visits your online store and views a product page, the Pixel will track this action
and send the data back to Facebook, which can be used to create retargeted ads for that
product.
Events are actions that the Pixel tracks on your website. These actions can be anything from
simple page views to more complex interactions like form submissions, button clicks, or
purchases. Events allow you to measure how users are interacting with your site and track the
effectiveness of your ads.
There are two types of events: Standard Events and Custom Events.
3. Standard Events
Standard Events are pre-defined actions that Meta has set up to track common user behaviors
on websites. These events require minimal setup, and Facebook provides a list of the most
common standard events.
● ViewContent: Triggered when a user views a specific page on your website, such as a
product or service page.
○ Example: A user visits the product page for a pair of shoes on your online store.
● AddToCart: Triggered when a user adds a product to their shopping cart.
○ Example: A user adds an item to their shopping cart but hasn’t yet purchased it.
● Purchase: Triggered when a user completes a purchase on your site.
● Standard events are easy to implement and are automatically recognized by Meta’s ad
platform.
● They allow Meta to optimize ads based on common user actions, helping you run more
effective campaigns.
4. Custom Events
Custom Events are user-defined actions that you set up to track specific interactions on your
website that are not covered by the standard events. You can create your own events based on
your business needs.
● Example 1: You want to track when a user clicks a specific button on your website, like a
"Download eBook" button.
● Custom events provide flexibility to track actions that matter specifically to your business
or website.
● They allow you to get more granular insights into user behavior that standard events
might not cover.
5. Custom Parameters
Custom Parameters are additional pieces of data that you can include in your events to provide
more detailed information. These parameters help refine your event tracking and can be used to
track specific actions within a broader event.
For example, you can add parameters to track the value of a purchase, the product category, or
the specific page a user visited.
Examples of Custom Parameters:
● Example 1: You track a Purchase event but want to know the value of the purchase.
● Custom parameters provide deeper insights and enable more precise targeting and
optimization of ads.
● They allow you to track additional information that is important for your business, making
your campaigns more tailored and efficient.
1. Log in to Facebook Business Manager: Go to Meta Business Manager and log in using
your Facebook credentials.
2. Navigate to Events Manager:
○ In the top-left corner, click on the menu (three horizontal lines).
○ Go to Events Manager under the Measure & Report section.
3. Create a New Pixel:
○ In Events Manager, click Pixels and then click Add.
○ Enter a name for your Pixel (e.g., "My Business Pixel"). You can leave the “Website”
option selected.
○ Click Continue to create your Pixel.
1. Set Up Google Tag Manager (if you don’t already have it):
○ Go to Google Tag Manager and create an account.
2. Add Meta Pixel to Tag Manager:
○ In Google Tag Manager, go to Tags > New > Tag Configuration.
○ Select Custom HTML and paste the Pixel code into the box.
○ Set the trigger to fire on all pages.
○ Publish the tag.
Events are actions users take on your website (e.g., page views, purchases, sign-ups).