How to Add Facebook Pixel Events to Your Website

How to Add Facebook Pixel Events to Your Website

call center skills

With its four products — Facebook, WhatsApp, Messenger, and Instagram — Facebook Inc. is leading the world’s social media and messaging market.

Facebook pixel events — Facebook products

According to DataReportal’s Digital 2020: Global Digital Overview, the Facebook family of apps and services has over 7 billion monthly active users.

If you’re going to take advantage of one of Facebook’s platforms to boost your website or online store professionally and show ads to a huge army of users, you’ll have no choice but to set up Facebook pixel code.

If you’re reading this article, we assume you’ve found out how to create a Facebook pixel and add it to the header of every page of your website. Moreover, you’ve probably already done it!

That means you’re ready to set up events for your Facebook pixel. And we’re happy to assist you in this endeavour.

Make yourself comfortable, grab a cup of your favorite beverage, and let’s start.

What Are Facebook Pixel Events?

Probably you already know the answer. Still, practice makes perfect.

Facebook pixel events are actions taken by website visitors after they click on Facebook, Instagram, Messenger, or Audience Network ads. These events are registered by code added to the website pages where a publisher wants these actions to be tracked.

Facebook pixel events — Events Manager

If Facebook pixel is the backbone of Facebook marketing, Facebook pixel events are the vertebrae.

Thanks to Facebook pixel event tracking, you can:

Now let’s review the major types of Facebook pixel events available so far.

Major Types of Facebook Pixel Events

Events powered by Facebook pixel are divided into three categories: standard events, custom events, and custom conversions.

Standard Events

Facebook pixel standard events are predetermined events used to track actions resulting in the most common conversions that happen on a website.

Facebook pixel events — standard events

Here’s the list of Facebook pixel events that are built into the platform:

Event NameDescription
Add Payment InfoA user saves billing information by clicking a button.
Add to CartA user adds a product or service to the cart by clicking a button.
Add to Wish ListA user adds a product or service to the wish list by clicking a button.
Complete RegistrationA user completes a signup or subscription form.
ContactA user starts a conversation through telephone, email, live chat, or any other channel.
Customize ProductA user takes an action that leads to finding a product that matches their personal preferences. For instance, they choose the size of shoes.
DonateA user donates to an organization or cause.
Find LocationA user searches for a business’s location via a website or app.
Initiate CheckoutA user visits the checkout page before completing the checkout flow.
LeadA user completes a signup.
Page ViewA user visits a website page.
PurchaseA user makes a purchase or completes the checkout flow.
ScheduleA user books an appointment to visit a business’s physical location.
SearchA user searches for a product on a website.
Start TrialA user starts a free trial of a product or service.
Submit ApplicationA user applies for a product, service, or anything else offered by a business.
SubscribeA user applies to begin a paid subscription of a product or service.
View ContentA user visits a website page you care about.

When it comes to tracking predefined conversions on Facebook, standard pixel events may have object properties and custom properties that you can use to broaden tracking capabilities for actions taken by your website community. To figure everything out, you’ll need knowledge of the JSON programming language or the assistance of a professional web developer.

Custom Events

Facebook pixel custom events are used in two cases. 

Facebook pixel events — custom events

The first case is when you haven’t found the event you need in the list of standard events and you need to create a unique event for your website. 

The second case is when you’re defining custom audiences for ad optimization.

As with standard events, you can include object properties and custom properties for your custom events as well.

Custom Conversions

Facebook pixel custom conversions have four use cases.

The first is optimizing your ad delivery for users’ actions you can’t register either with standard or custom events. In this case, you need to pick a standard event that’s more to correspond to the event you want to track.

The second use case is for creating more specific rules for events or URLs. A custom conversion is a great way to track Facebook pixel e-commerce events. For example, say you started a summer sale and you want to find out how many purchases of men’s sandals you’ve made for an amount over $30.

Facebook pixel events — custom conversions

The third use case is for adding standard events without adding pixel event code to your website. After you install Facebook Pixel code, you can go to Custom Conversions in Events Manager and use the All URL Traffic option. This option allows you to log Page View events, which are part of the Facebook pixel code by default.

If you choose this option, you’ll let Facebook register all visits to all webpages. But keep in mind that Facebook won’t tell you which event has happened and where exactly it has happened.

The fourth purpose is to let you share individual custom conversions with your team or partners instead of sharing your entire pixel event data.
You can create up to 100 custom conversions per ad account, but you can’t use them with Dynamic Ads.

How to Set Up Facebook Pixel Events Code

To set up code for Facebook pixel events, first of all, read these recommendations. They’ll help you use your code properly no matter which type of event you take advantage of:

  • Add the code snippet of every event and its parameters as they are. Otherwise, your event won’t work or Facebook will log it as an event of another type.
  • Set the value and currency for events that are related to purchasing products or services.
  • Add events in a way that allows you to cover your entire sales or marketing funnel to let Facebook pixel fully understand your customers’ behavior. The event chain example is page view, view category, view content, add to cart, purchase, etc.

Now let’s find out how you can set up events for Facebook pixel and review the installation  process type by type.

How to Add Standard Events

To add a standard event, you’ll need to:

  1. Open the header of the page where you want to log your standard event.
  2. Insert Facebook pixel base code between the <head> and </head> tags.
  3. Insert your Facebook pixel standard event above the </script> tag.

Here’s a scheme of what this should look like:

Facebook pixel events — standard events code

Once you set up your standard events, Facebook will start receiving data and you’ll be able to see it in Events Manager. For more details on code implementation, see Facebook’s developer guidelines.

How to Install Custom Events

To install a custom event, you’ll need:

  1. your website code
  2. Facebook pixel base code
  3. your Facebook pixel custom event code.

The scheme is the same as for adding a standard event. The only difference is your event code.

Facebook pixel events — custom events code

Once you install your custom event code, you’ll be able to monitor your custom events in Events Manager. Follow this link if you want to see more information on custom event code implementation.

How to Create Custom Conversions

Here’s how to create a Facebook pixel event with custom conversions in four steps:

Step 1. Go to Events Manager and click the Custom Conversions tab on the left.

Step 2. Click Create Custom Conversion.

Step 3. Create a name and description for your custom conversion, choose Facebook pixel as the data source, specify a conversion event, and enter all the necessary details.

Step 4. Check all the information you’ve entered and click Create.

Track Events for Facebook Video Ads Made by AI

After you see the entire Facebook pixel events list and create your standard or custom events, don’t forget to test their performance with the Test Events and Diagnostics tools in Events Manager to make sure you receive conversion data without mistakes.

Facebook pixel events — tools

And if you want to get high conversion rates with Facebook ads, try Softcube artificial intelligence.

The Softcube platform will help you achieve a higher return on investment by producing high-quality video ads automatically, at scale, and for the same money as image ads.

Good luck with tracking your Facebook pixel events!