Using the Facebook pixel with Adobe Dynamic Tag Management

30/11/2019

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

Before you begin

Install the Facebook pixel

  1. Open Adobe Dynamic Tag Management.
  2. Select the appropriate company if you work on multiple. If not, just click the Web Property that you want to install the Facebook pixel on.
  3. Click Add a Tag.
  4. Click Go to Rules.
  5. From the left menu, select Page Load Rules.
  6. Click Create New Rule.
  7. Give it a name.
  8. Click the + button to expand the Javascript/Third Party Tags tab.
  9. Select Sequential HTML.
  10. Click Add New Script.
  11. Go to the Pixels page in Facebook Ads Manager.
  12. Copy your pixel ID.
  13. Back in Adobe DTM, paste the code in the black custom code box.
  14. Give the tag script a name, then click Save Code.
  15. Click Save Rule.
  16. Click Create Tag.

Assign events

Now that you've placed the pixel code on your site, you can create events for specific actions you'd like to measure, such as when someone makes a purchase.

  1. Select Event Based Rules from the left menu.
  2. Click Create New Rule.
  3. Give the rule a name and select the appropriate event type from the drop-down.
  4. Assign the appropriate target in the Element Tag or Selector box. You can enter it manually or use the selection tool by clicking the circle icon to the right of the box. You can also add various rule conditions.
  5. Click the + button to expand the Javascript/Third Party Tags tab.
  6. Select Non-Sequential or Sequential JavaScript, then click Add New Script.
  7. Give it a name, then add the appropriate event code (e.g. fbq('track','AddToCart');) into the black code box.
  8. Click Save Code.
  9. Click Save Rule.

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 not 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, learn how to start running ads on Facebook using conversion optimisation and tracking.

* Nguồn: Facebook