If you’re using Google Tag Manager to manage tags for your website and want to install the Facebook pixel, follow these steps:
Installing the Facebook pixel basic code:
- Open your Google Tag Manager.
- Select your website’s container, then click Add a new tag.
- Give the Tag a title in the top left of the panel.
- Click on Tag Configuration.
- Choose Custom HTML Tag from the list of tag types.
- Go to your Facebook pixel page.
- Select Setup > Install Pixel in the top right of screen.
- Choose “Manually Install Pixel Code Yourself”
- Copy the entire pixel code in option 2, as seen below.
- Go back to Google Tag Manager and paste the code into the HTML container.
- Click on Advanced Settings and select Once per page under Tag firing options.
- In the Triggers panel, choose to fire on All Pages.
- Save the tag
- Back on the overview page, choose to Publish your changes.