How to setup Facebook Custom Audiences Pixel

In this article I will explain how you can setup Facebook Custom Audiences Pixel and how you can benefit from it. But at start let me explain to you what is a Facebook Custom Audience.

Facebook Custom Audience

A Custom Audience is an ad targeting option that lets advertisers find their existing audiences among people who are on Facebook.

You can choose from 4 options available to import or collect your custom audience on Facebook:

  • Import from Data Source (CSV)
  • Import from Mailchimp
  • From your Mobile App
  • Collect from your website

Since the topic of this article is how to setup Custom Audiences Pixel, I will speak about last option - Custom Audiences from your website.


What does it mean - Custom audiences from your website?

You can have a Facebook Custom audiences Pixel be setup on your site,and when a Facebook users visits your site, you track him down. No you don't have access to his bank account details, e-mail address or even Name and Surname, but Facebook users has been added to your Audience and latter on you can create a Facebook Ad - to promote your business page or to simple drive traffic to your website with your Custom Audience collected data.

In order to collect some data from our website we will need to add a custom Facebook Pixel to track our visitors. The process how to add a Facebook Custom Audiences Pixel is pretty similar as to add a Google Analytics tracking code, and here is how:

How to add Facebook Custom Audiences Pixel to your website

Login to Facebook and go to Ads manager section. In the left sidebar look for the Audiences tab. Click on it and then click on green button in top upper corner - Create Audiences, from dropdown menu choose Custom Audience. Popup window will open allowing to choose which of 4 options you would like to create, choose last option - Custom Audiences from your website.

Now click on View your Custom Audience pixel code

<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  _fbq.push(['addPixelId', 'yourid']);
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
<noscript><img height="1" width="1" alt="" style="display:none" src=";ev=NoScript" /></noscript>

This will be your Custom Audience Pixel code you will need to add to your websites <head> section.

Copy the code above and paste it between the <head> and </head> in your website code. Then you can set up rules to track specific actions people take across your website.

Now once your Custom Audience Pixel has been setup it's time to configure it. By default it will store cookies for 30 day period, but you might want to change this to longer period. Maximum allowed is up to 180 days.



Depending how many traffic you are already receiving for your site it might take few days or few months to define solid audience. Which later to re-use for your advertisement.

You might want to update your sites Privacy Policy after you have installed Custom Audiences pixel code, in some countries it's required by law.

Now it's up to you - what to do with your Custom Facebook Audiences - you can-use it to get more business page likes, or you can drive direct traffic to your site using re-marketing techniques.

So far I have created just one Facebook Custom Audiences and I'm planing latter use it to gain more business page likes.