The Facebook pixel is a piece of code you place at the back end of your website to track and understand the behaviors and actions taken by visitors on your site.
It allows you to run targeted ad campaigns, monitor how successful your Facebook ads are, giving you more accurate conversion stats and they allow you create custom audience based on site traffic.
The code embedded in the website links visitors’ on- site behavior to Facebook user profiles. The sync between a website visitor and the Facebook account enables the social media platform to retarget those individuals with relevant ads and also to track the actions individuals take when they return to the website.
Have you ever added a product to your cart on an online market place such as Ali Express and Jumia without completing the purchase only to see that same product now appearing on your social media new feed?
Or probably you checked out an online course with an online academy which you haven’t checked out before only to start seeing ads on that course on your social profiles like Instagram and Facebook.
This is exactly what Facebook Pixels do.
Facebook pixel is a transparent 1×1 unique image files which is embedded on pages outside Facebook. This file sits on Facebook servers and each time it is loaded, it increments counters on Facebook’s end.
Whenever a user accesses Facebook using a web browser and an IP address, a signature is generated that Facebook matches to the user. No matter what browser or device this user uses, it can still be associated to him/her.
This is because every time the pixel file is being seen by a user, Facebook servers can see the browser, the machine and IP address. As long as a user accesses the page that has a pixel in a way that they used once to log on Facebook, they can be identified and matched to a Facebook ID.
When this pixel is seen, the Facebook sever knows what page the user is on and the information from the page can tell what actions the user takes on that website.
So from this, Facebook knows all the actions that have been taken on the website. Incomplete orders, email subscriptions, amount of time spent on the site, bounce rates and lots more.
Each ad account gets to use only one pixel. The code embedded in a website consists of two main parts;
Every single pixel has its own unique 15 digit ID which you can install on every page on your site that you want to track. You can easily generate your pixel code using Facebook Ads Manager or Facebook Business Manager.
Open up your Ads manager and click the top menu button and an asset column appears, click on Pixel and then a new page appears, click on “create a pixel” and give your new pixels a name.
On the business manager home page, navigate to pixel in the left menu and click “create new pixel”, you also have to give the new pixel a name. With Business Manager, you can create up to a 100 pixels.
After creating a pixel, you assign it to an ad account. Remember one ad account gets only one pixel.
Now you have created a pixel, the next step would be to install it.
Once you have created the pixel, Facebook will automatically show you ways to choose from to install pixel. You can install the pixel manually, you can also install it through your Shopify store.
After creating the pixel on the Ads Manager, you’ll immediately find a call to action button to finish setting up pixels.
If you haven’t installed pixels yet, click on the “set up pixel” button as shown below
Image here
After hitting that button, you’ll be given a list of options, click on the option that says. “Manually Install the Code Yourself”. You can also click on the option that says, “Use an Integration or Tag Manager” that is if you are using a third party website that supports this kind of integration.
Clicking the manual install option gives you an option to copy and paste the code. If you aren’t skilled in doing this or feel nervous dealing with codes, you’ll also be given an option to email the code to your web developer.
If you are installing it yourself, pick the copy and paste option. When you select this option, you’ll see the install Pixel Base page. Click the code box to copy the code to your clipboard.
The next thing to do is to paste in the copied code to the header tags of your website under the SEO settings. Your web host should have instructions on how to do that. This also applies if you are using third party service.
Event codes allow you track actions that are taken by individuals on your website. These codes are usually used by e-commerce stores to track what customers do on their web store.
After installing the Base code, click on “Next” to get another snippet of code for you to install on your website. You then select the event code you want, click the code box to copy then go ahead to paste on the website page of choice.
There are different types of event codes for different purposes, tracking different types of visitor actions; the types and functions are listed below;
The idea is to choose the one that best suits the actions and conversions you want to track.