How to Set Up the Facebook Tracking Pixel with Google Tag Manager

Website Services does not have a direct integration with the Facebook Tracking Pixel, but is extensible through Google Tag Manager. In turn, Google Tag Manager can install the Facebook Tracking Pixel on your website.

This guide shows you how to set up the tracking pixel.

Caution

The Facebook tracking pixel is not compliant with most privacy protection legislations, such as GDPR (Europe) or CCPA (State of California). If your business and customers are targeting these regions, you will need to take necessary measures to ensure compliance.

We recommend you read and understand Facebook's privacy policy before getting started.

Step 1. Integrating Google Tag Manager

You will first need to create an account on Google Tag Manager, and link it to your website.

1. To create a Google Tag Manager account, open https://tagmanager.google.com/
2. Create a new account and container matching your website domain. You can refer to Google’s documentation for more information.
3. In Website Services site editor, open the “Settings” panel on the left-hand side. Fill in the Container Id that matches the container you created in Google Tag Manager. The Container Id is of the form GTM-xxxxxx.

For more details, please consult our dedicated documentation page

Step 2. Adding Facebook Pixel to Google Tag Manager

1. In Google Tag Manager, under Tags, add a new tag.

2. Click Tag configuration, and select Facebook Pixel as the tag type.

3. Configure the facebook pixel as needed in the Tag Configuration panel.

4. Below the tag configuration, click on Triggering to select when the pixel will be installed. Select “All Pages” as the trigger.

5. Finally, click save for the newly added tag.

The changes can take a few minutes to take effect. You can confirm that the tracking pixel is correctly installed using the Facebook testing tool.

Still need help?