Using Facebook pixel with Tealium

30/11/2019

If you're using Tealium to manage tags for your website and want to install the Facebook pixel, follow these steps:

Before you begin

Install the Facebook pixel

  1. Log in to Tealium.
  2. From your dashboard, click Tags.
  3. Click + Add Tag.
  4. Search for Facebook tag, then click + Add.
  5. Name your tag (it'll default to Facebook tag).
  6. Go to the Pixels page in Facebook Ads Manager.
  7. Copy your pixel ID.
  8. In Tealium, paste your pixel ID in the Facebook Pixel ID container.
  9. Click Finish.

Assign events:

Events are set directly in the tag with mapping. This is a one-to-one mapping, meaning that it will look at one Universal Data Object (UDO) variable for one exact match. To set events within your tag:

  1. Click Edit next to MAPPED DATA SOURCES, from your Facebook tag page.
  2. Click Define & Map New Data Source.
  3. Enter your data source and type. If you're unsure about which to use here, check with your webmaster or Tealium contact. In the example below, we're using "page_type".
  4. Click Apply and you'll see that your data source has been added.
  5. Next to your data source, click Add Destination, then click Events.
  6. Add a trigger, select your event and click Apply.
  7. Enter the rest of your events in the same manner. If you have to conditionally test two variables to set the event, then you'll need to do that in an extension, setting one value to fire the event. In the example below, we mapped when "fb_event_type" = "add to wishlist" where "fb_event_type" is a variable created to hold the output of the extension "add to wishlist".

Check if your pixel is working:

Once you've uploaded all your events, you should check if your pixel is firing correctly. To check that your pixel is working properly on your live site:

  1. Go to the page where the pixel has been placed. If it's working, the pixel will send information back to Facebook and you'll be able to see activity on the Pixels page in Ads Manager. Your pixel's status will also be set to Active.
  2. Note: The activity column reports all conversion events, regardless of whether or they're associated with an ad.

  3. If this page says No activity, then take a look at the Facebook Pixel Helper troubleshooting guide.
Once you've successfully set up your pixel, start running ads on Facebook using conversion optimisation and tracking.

* Nguồn: Facebook