Transition from a Custom Audience pixel 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.
- Go to your Pixels page in Ads Manager.
- Click Actions > View pixel code.
- Copy and paste it where you have the Custom Audience pixel code
To verify that you've upgraded:
- Go to your Facebook pixel tab in Ads Manager.
- 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 action | Standard event code for the Custom Audience pixel |
---|---|
Key page view | window._fbq.push(['track', 'ViewContent']); |
Search | window._fbq.push(['track', 'Search']); |
Add to basket | window._fbq.push(['track', 'AddToCart']); |
Add to wishlist | window._fbq.push(['track', 'AddToWishlist']); |
Initiate checkout | window._fbq.push(['track', 'InitiateCheckout']); |
Add payment info | window._fbq.push(['track', 'AddPaymentInfo']); |
Make purchase | window._fbq.push(['track', 'Purchase', {value: '0.00', currency: 'USD'}]); |
Lead | window._fbq.push(['track', 'Lead']); |
Complete registration | window._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