How to Add a Facebook Pixel to Your Website Using Google Tag Manager

Google Tag Manager (GTM) is an easy-to-use application that simplifies the process of adding, managing, and editing tags on your website. With GTM, you can easily add a Facebook Pixel to your website without the need for custom coding.

A Facebook Pixel is a tag that tracks traffic from Facebook ads to your website. It provides valuable information that helps optimize ads, build targeted audiences for future ads, and target people who have already taken action on your website. Click here to learn more about using Facebook Pixel with Google Tag Manager.

To add a Facebook Pixel to your website using GTM, follow these steps:

  1. Ensure you have a GTM and Facebook Business Manager account open and accessible.

  2. Connect your GTM account to your FMG website. Click here for an article on how to complete that simple process.

  3. Access your Facebook Events Manager and create a new Pixel if you still need to do so.

    1. You can create a new Pixel by clicking "Connect Data Sources" in the left navigation bar:

    2. Connect a New Data Source: Select Web

    3. Select a connection method: Select Facebook Pixel

    4. Next, name your pixel (this can be changed later):

    5. Choose how you want to install pixel code: Click the "Install code manually" button

    6. Now, you will see the code you need to copy/paste into GTM:

  4. Choose "Install code manually" and copy the Pixel code.

  5. Open your GTM account and add a new tag:

  6. Select "Custom HTML" as the tag type and paste the Pixel code in the HTML section.

  7. You must add, configure, and rename your trigger to make the tag fire.

    1. Add Trigger:

    2. Configure Trigger:

    3. Rename Trigger:

  8. Once you have saved your tag in GTM and submitted your changes, you're all set!