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
- Make sure that you have access to your website's Tealium account.
Install the Facebook pixel
- Log in to Tealium.
- From your dashboard, click Tags.
- Click + Add Tag.
- Search for Facebook tag, then click + Add.
- Name your tag (it'll default to Facebook tag).
- Go to the Pixels page in Facebook Ads Manager.
- Copy your pixel ID.
- In Tealium, paste your pixel ID in the Facebook Pixel ID container.
- 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:
- Click Edit next to MAPPED DATA SOURCES, from your Facebook tag page.
- Click Define & Map New Data Source.
- 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".
- Click Apply and you'll see that your data source has been added.
- Next to your data source, click Add Destination, then click Events.
- Add a trigger, select your event and click Apply.
- 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:
- 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. Note: The activity column reports all conversion events, regardless of whether or they're associated with an ad.
- If this page says No activity, then take a look at the Facebook Pixel Helper troubleshooting guide.
* Nguồn: Facebook