Transition from a Custom Audience pixel to a Facebook pixel

30/11/2019
If you have a conversion tracking pixel, see how to transition to a Facebook pixel.

In this article, you'll learn how to upgrade from a Custom Audience pixel to the Facebook pixel. With the Facebook pixel, you can create custom conversions and use advanced matching in addition to tracking and optimising for conversions, and creating audiences.

Before you begin

  • You must be able to update your website's code.
  • You should have already created a Custom Audience pixel.

Update the Facebook pixel base code

There are two parts to the Facebook pixel code: the base code and event code. To start using the Facebook pixel, you'll first need to find your Facebook pixel.

  1. Go to your Pixels page in Ads Manager.
  2. Click Actions > View pixel code.
  3. Copy and paste it where you have the Custom Audience pixel code

To verify that you've upgraded:

  1. Go to your Facebook pixel tab in Ads Manager.
  2. Check the pixel dashboard to confirm the logging of PageView events.

Facebook pixel event code

For powerful tracking and optimisation, you need to add event code to your existing or updated base code. Events are actions that happen on your website, either as a result of Facebook ads (paid) or organic reach (unpaid). The event code lets you track those actions and leverage them in advertising.

There are two types of events you can send. Standard events are nine predefined events that Facebook is able to track and optimise your ads for with no additional actions. Custom events are actions that are important to your business, but that you can't use for tracking and optimisation without additional action. Learn how to use custom events.

For guidance on implementing the Facebook pixel code, see the Events section of the Facebook pixel setup guide.

If you do want to continue using your Custom Audience pixel for tracking and optimising, there are still a few code updates required. You'll need to add event code to your existing Custom Audience code, as laid out in our Facebook pixel setup guide

Note: Event code looks a bit different for the Custom Audience pixel than what we show in the setup guide. While they look different, you can install them in the exact same way we recommend in the guide.

Website actionStandard event code for the Custom Audience pixel
Key page viewwindow._fbq.push(['track', 'ViewContent']);
Searchwindow._fbq.push(['track', 'Search']);
Add to basketwindow._fbq.push(['track', 'AddToCart']);
Add to wishlistwindow._fbq.push(['track', 'AddToWishlist']);
Initiate checkoutwindow._fbq.push(['track', 'InitiateCheckout']);
Add payment infowindow._fbq.push(['track', 'AddPaymentInfo']);
Make purchasewindow._fbq.push(['track', 'Purchase', {value: '0.00', currency: 'USD'}]);
Leadwindow._fbq.push(['track', 'Lead']);
Complete registrationwindow._fbq.push(['track', 'CompleteRegistration']);

Once you've successfully set up your pixel, start running ads on Facebook using conversion optimisation and tracking.

* Nguồn: Facebook