Starting out with Facebook Pixel

Facebook stands tall as the biggest Social Media platform, boasting more than 2 billion people using it every month. Tapping into this rich pool of potential customers is an effective way of stimulating growth for your business. But how do we do that? What even is Facebook Pixel?

This guide aims to shine some light on this effective marketing tool. Let’s get started right away!
What is Facebook Pixel?
Facebook Pixel is a piece of code that you can inject into your website, after which it can track user behaviour and conversions. This code also ties in with your Facebook Business account, where you can view metrics inside the event manager section. A few examples of things that can be tracked are:
  • Page views
  • Purchases made
  • Button clicks
  • Content views
Information that is tracked can then be used to target ads via Facebook and other platforms owned by Meta, increasing customer lifetime value and strengthening your business.
How to install Facebook Pixel
Installing Facebook Pixel into your website can be done in multiple ways, depending on what system you use. Systems like WordPress are very handy in achieving this installation in multiple ways. Let’s discuss the easiest one, injecting the code directly into your website. Follow these steps:
  • Visit the Events Manager page
  • Click on “Connect Data” 
  • Select “Web”
  • Continue to connect
  • Give your Facebook Pixel a name
  • Enter the website URL from where you want to track data from
  • “Tick” the website and continue after it is complete.
  • Select the recommended method of connecting your website
  • Refresh the page and go to the “Data sources” tab, found on the left menu of the ads manager environment
  • Select “Continue Pixel Setup”
  • Select “Install Code Manually”
  • Copy the code that appears on the next screen
Congratulations! You are now the proud owner of your very own Facebook Pixel Code. But where do we put it? This is where some technical knowledge comes into play. We want to paste this code into the header section of your website. Simply put, the header section of your website is used to run scripts and codes the website needs to run certain systems. Code in the header loads on every page of your website, making it crucial that you put your Facebook Pixel code here in order for it to work effectively.

So how do you do this? Assuming your website uses a header file like header.php, you can access that file and paste the code directly underneath where is displayed.
(Note: the X’s are where your own pixel code is displayed, as well as after the ‘init’) Save the file, and you are done! After you have installed your pixel code, try to visit your website, and view some pages. If the code is installed correctly, activity should come up in your Events Manager. If not, you can try to paste your Pixel Code on other sections of your header file to see if that has any effect.
How can I check if my pixel is tracking data correctly?
Checking to see if standard Pixel events are tracked correctly is a nice mental load off your shoulders. Luckily, there is a very handy tool available to look and see if your installed Pixel Code actually sends data (other than looking into your events manager).

Facebook Pixel Helper is an addon/extension that you can install into your browser to easily view any events being fired on your page. After you have installed it, you should be able to activate it by clicking on it’s icon whilst being on a webpage that has the Pixel installed.

If all checks are green, you are good to go! If not, that’s an indication that there might be something wrong with your code.

And there you go! Using this guide will have helped you get to grips with online growth and managing your online organisation and its interaction with users. Cheers!

Growth in your emailbox

Get news and insights from Refreshworks

More insights


Explore your growth opportunities with Ebel