In this chapter, we will look at how to deploy Facebook pixels using Google Tag Manager.
If you are not familiar with Facebook advertising, then the rest of this chapter won’t be applicable to you. If you are familiar, then continue.
Login to your Facebook Ad account and get your Base pixel code. Make sure to select the option to manually install the pixel.
Figure: Facebook base pixel
Configuring the Tag
Copy this code, login to Google Tag Manager and create a new Tag
Since we are not using any built-in Tag, select Custom HTML type tag.
Paste the Facebook pixel code in the Custom HTML tag.
Give the tag a name and save it. You will now be prompted to “Save” or “Add Trigger”, click on “Add Trigger”.
Configuring the Trigger
To fully collect the data so that we can use it in Facebook advertising, we need to fire this tag on every page of the sites. We must collect audience information as they interact with our website; no matter which page they are on.
So create a Pageview Tag and set it to all pages.
That’s all you need. Save the tag.
Figure: Facebook Pixel Tag
Preview the tag to make sure it is working fine. If everything looks good, then publish it.
Soon, you'll start to see your audience information in Facebook Ad Manager.
It might take up to 20 minutes before you can see your audience information on Facebook at the manager.
Want to Learn Google Tag Manager. Here are few options:
- Get Google Tag Manager Book at Amazon
- Signup for Google Tag Manager Course on Udemy
- Signup for Optizent Academy and get Google Tag Manager + 20 other courses
- Free Introduction to Google Tag Manager course