Facebook Pixel Cheat Sheet For GTM Analytics Mania 3
Facebook Pixel Cheat Sheet For GTM Analytics Mania 3
Created by
Julius Fedorovicius
Founder of Analytics Mania
[email protected]
@fedorovicius
Before you continue
It is recommended to read this guide before you use this cheat sheet.
Otherwise, some bullet points might be too confusing. If you have any questions
about the Facebook Pixel + GTM, just post a comment under that very same
blog post.
Also, Facebook is constantly changing its interface, therefore, you might notice
some differences in this cheat sheet.
Also, in the cheat sheet, I use “Facebook Pixel” and “Meta pixel”
interchangeably.
Then go to Data Sources and choose the Pixel that you’re interested in. Copy that
ID, you’ll need it later.
2|Page
#2. Facebook Pixel Custom Tag Template
In Google Tag Manager, go to Templates > Tag Templates > Search Gallery and find
the Facebook Pixel. Add it to your workspace.
Don’t use other implementation methods Facebook offers (like direct integration
between Facebook and Google Tag Manager).
3|Page
#3. Start with the Pageview Tracking
4|Page
And then insert that variable in all of your
Facebook Pixel tags →
Enable GTM preview and Debug mode & check whether your tag has fired.
Also, check whether the data was passed properly with the help of Facebook Pixel
Helper.
5|Page
#4. Event Tracking with Meta Pixel
6|Page
You can also send custom properties with an event (anything you like), for
example:
7|Page
#5. Send Additional Parameters
Standard Events also support additional parameters. Here you can find the list of all
of the ones that are currently supported. Usually, they are optional. Only in Purchase
event, two parameters are required: currency and value (order total).
Here’s a sample configuration of the Facebook tag. If you want to learn more details,
read this guide.
8|Page
#6. Other Things to Know
Facebook Pixel tries to capture various additional data on your page. However, I
don’t trust auto-tracking solutions because they might end up capturing a lot of
garbage data too.
That’s why I usually disable this feature. If you want to do the same, go
your Facebook Pixel tags > More Settings and tick the Disable Automatic
Configuration checkbox. Do that in all Facebook Pixel tags.
If you want to set the tag to send data to multiple pixels, just enter them in the
Facebook Pixel ID(s) field, separated with comma.
9|Page
#7. Advanced Matching in Facebook Pixel
Facebook Pixel Advanced Matching gives advertisers the ability to connect their
customer data — such as email addresses, phone numbers, and other demographic
data — to their Facebook campaigns, therefore, target more precisely.
Ask a developer to push some data about the user to the Data Layer (like country,
email, gender, etc.) and then you will be able to transfer it further to Facebook.
Here’s an example of the code snippet a developer could activate before the GTM
container snippet is loaded (of course, those values should be dynamically replaced).
10 | P a g e
Then, eventually, set those parameters in your Facebook Pixel tags:
Reminder
If you find his cheat sheet a bit confusing and want to get more details, go and
read this guide; it explains everything is greater detail (I just did not want to
overwhelm you right now with a super long e-book).
11 | P a g e
#8. Don’t Forget to Test
12 | P a g e
#9. Server-side setup (Conversions API)
If you want to make your Meta Pixel setup more precise and collect data of higher
quality, you should consider implementing a server-side solution too.
According to Meta, server-side tracking with Meta’s Conversion API can help you:
• Reduce the cost per action as a result of improved connectivity
• Improve measurement
• Reduce cost per action
• Increase data control
This is a much more advanced topic that I explain in the intermediate/advanced
Google Tag Manager course.
14 | P a g e