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:
-
Ensure you have a GTM and Facebook Business Manager account open and accessible.
-
Connect your GTM account to your FMG website. Click here for an article on how to complete that simple process.
-
Access your Facebook Events Manager and create a new Pixel if you still need to do so.
-
You can create a new Pixel by clicking "Connect Data Sources" in the left navigation bar:
-
Connect a New Data Source: Select Web
-
Select a connection method: Select Facebook Pixel
-
Next, name your pixel (this can be changed later):
-
Choose how you want to install pixel code: Click the "Install code manually" button
-
Now, you will see the code you need to copy/paste into GTM:
-
-
Choose "Install code manually" and copy the Pixel code.
-
Open your GTM account and add a new tag:
-
Select "Custom HTML" as the tag type and paste the Pixel code in the HTML section.
-
You must add, configure, and rename your trigger to make the tag fire.
-
Add Trigger:
-
Configure Trigger:
-
Rename Trigger:
-
-
Once you have saved your tag in GTM and submitted your changes, you're all set!