How to add FB Pixel tracking code to your site (using GTM)?
- Ads & Fun Team
- Mar 17, 2021
- 2 min read
Updated: Mar 29, 2021
What you need:
Your site must have GTM installed
You must have an FB Pixel created (see "How to create an FB Pixel" or "Where to find your FB Pixel code" if needed);
It is advisable to install the browser extension - Facebook Pixel Helper (to check the work of the installed Pixel code);
Steps:
Step 1: Log into your GTM account, in the "Tags" section, click the "New" button;
Step 2: In the "Tag Configuration" section, select the "Custom HTML" tag type;
Step 3: Copy your FB Pixel code (see above for where to find it) and paste it into the HTML code field;
Step 4: As a trigger, select "All Pages" - page view, then give a name to your tag (eg FB Pixel) and save it;
Step 5: Click the "Submit" button, fill in the information about the changes (it doesn't matter what you write), and click the "Publish" button (if you do not have a "Publish" button, then most likely you do not have enough permissions);
Step 6: Go to your website, refresh the page, and use the Facebook Pixel Helper extension to check if FB Pixel has been installed successfully;
See Screenshots:
Step 1: Log into your GTM account

in the "Tags" section, click the button "New"

Step 2: In the "Tag Configuration" section, select the "Custom HTML" tag type;

Step 3: Copy your FB Pixel code (see above for where to find it) and paste it into the HTML code field;
Step 4: As a trigger, select "All Pages" - page view. Then give a name to your tag (eg FB Pixel) and save it;

Step 5: Click the "Submit" button

fill in the information about the changes (it doesn't matter what you write), and click the "Publish" button (if you do not have a "Publish" button, then most likely you do not have enough permissions);

Step 6: Go to your website, refresh the page, and use the Facebook Pixel Helper extension to check if FB Pixel has been installed successfully;

Commentaires