Facebook’s Custom Audience pixel allows advertisers to track conversions, and optimize for conversions and build website custom audiences for remarketing purposes. Marin Social supports both the Facebook Custom Audiences Pixel and the 'historic' Facebook conversion pixel.
This article will cover how to use Marin Social to quickly and easily create the Custom Audience pixel, install it on your website, and create custom audiences based on the data it collects.
To create your Custom Audience pixel, follow these steps:
Note that you can create one Custom Audience pixel per Facebook ad account.
Follow these steps to install the pixel:
The code consists of two main elements: the base code and 'standard event' code. In the below example, the 'standard event' code is highlighted:
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '1234567890');
fbq('track', "PageView");
fbq('track', 'AddToCart');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=16231...iew&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
You should place the base code on every page of your website between the <head> and </head> tags. Standard events such as 'add to cart' or 'view content' represent the actions users may take on your site, and should only be placed on the applicable pages.
You can also use custom events. If you use custom events in your tracking code, then create a Custom Conversion to be able to optimize and track for it.
Below is a list of the nine available standard events:
Website Action |
Standard Event Code |
Key Page View |
fbq('track', 'ViewContent'); |
Search |
fbq('track', 'Search'); |
Add to Cart |
fbq('track', 'AddToCart'); |
Add to Wishlist |
fbq('track', 'AddToWishlist'); |
Initiate Checkout |
fbq('track', 'InitiateCheckout'); |
Add Payment Info |
fbq('track', 'AddPaymentInfo'); |
Make Purchase |
fbq('track', 'Purchase', {value: '0.00', currency: 'USD'}); |
Lead |
fbq('track', 'Lead'); |
Complete Registration |
fbq('track', 'CompleteRegistration'); |
Once you’ve installed your Custom Audience pixel on every page of your website, you can use Marin Social to create and remarket to custom audiences.