How to set up the Facebook Pixel using GTM


2


In the tutorial, we will take a look at creating and installing the Facebook pixel base code​ on your website.

Note: In January 2022, after turning the Facebook company into Meta, the company changed the Pixel name to “Meta pixel”.

Anytime we’re sending anyone off of Facebook so we’re sending them to a website or we’re sending them anywhere online that’s not on Facebook we need the Facebook pixel in order to track anything

The Facebook Pixel is a piece of tracking code that sits on your website and delivers information about your customers straight to Facebook.

It relies on Facebook Cookies, which enable Facebook to match your website visitors to their respective Facebook user accounts.

Pro Tip: Keep in mind that the pixel can’t work retrospectively. So, even if you’re not running Facebook ads yet, you should install the Meta pixel on your website. This way, Pixel will start collecting data on your website visitors right away, so you won’t have to start from scratch when launching your very first Facebook ads.


Reference #

  • How to set up and install a Meta pixel – By Facebook: link
  • How to Install Meta Pixel with GTM – By Analytics Mania: link
  • Meta Facebook Pixel Tracking with GTM – MeasureSchool (Video): link

Get Facebook Pixel tracking code #

Navigate to your Business Managers’ settings and click on Data Sources, pixels.

Meta Business Setting Pixel

When this panel is open you will be able to click the Add button. From here you will be able to create a new pixel.

Meta Business Create Pixel

Once you have clicked on the Add button you will see a window that will start the process. Give the pixel the name (Company Name _ Pixel) and enter your website URL.

Meta Business Pixel Setup

The next step from here looks like this:

Meta Business Pixel Setup Step 2

Choose Setup the pixel now.

Meta Business Pixel Setup Step 3

Choose Setup Manually. From here Facebook will open the pixel installer window which includes the code you need to add to your website.

Meta Business Pixel Code

Install the Facebook Pixel with GTM #

Create a new Tag and select from the community template gallery “Facebook Pixel by facebookarchive”

Meta Business GTM Pixel

Note: Simo Ahava has created this Custom Template and shared it with everyone, later this template was acquired by Facebook (facebookarchive).

In the Facebook Pixel ID(s) field, insert your Pixel ID

Meta Business Pixel GTM Tag

Pro Tip: Create a GTM variable that contains your FB Pixel ID

Set the tag to fire on “All Pages”.

That’s all.

Test if the Facebook Pixel is Working #

  1. Facebook Pixel Helper Extension

    The Facebook Pixel Helper is a Google Chrome extension you can use that will tell you if the Pixel is installed properly. It will show you which events are firing on a specific page and if there are any errors you might need to look into.

    Here is what it looks like when installed:

    Meta Pixel Helper Add-on
  2. Facebook Pixel Test Event Tool

    1. Go to Events Manager.
    2. Select your pixel or app in the Data sources tab.
    3. Click Test events. Activity is only recorded while the Test events web page is kept open.

    4. Meta Pixel Test Events
    5. If you’re testing app events, open your app on your phone. For website events, find the Test browser events section, enter your website URL and click Open website. This opens your website in a separate window or tab.

    6. Interact with your app or website to test the events you’ve already set up. Your interactions will appear in the Test events tab within 30 seconds.

    7. Meta Business Event Manager Tool

What’s Next #

  • Meta Pixel events

  • Meta Pixel audience creation

  • Meta Pixel performance measurement

  • Meta pixel optimisation

14 commenti

  1. Lacewell says:

    Appreciate you sharing, great post.Really looking forward to read more. Really Great.

  2. Bowell says:

    Say, you got a nice article post.Really looking forward to read more. Cool.

  3. Kochanek says:

    Thank you ever so for you blog post.Really looking forward to read more. Want more.

  4. Haymond says:

    Really enjoyed this blog article.Thanks Again. Really Cool.

  5. Murfin says:

    Muchos Gracias for your post.Thanks Again.

  6. Battiest says:

    Say, you got a nice blog article.

  7. Marchel says:

    A big thank you for your article.Much thanks again. Fantastic.

  8. Kuchler says:

    I truly appreciate this blog.Really looking forward to read more. Fantastic.

  9. Allnutt says:

    Fantastic blog post.Really looking forward to read more.

  10. Fingal says:

    Wow, great post.Really looking forward to read more. Keep writing.

  11. Alexanian says:

    Thanks again for the article post.Much thanks again. Cool.

  12. Altomonte says:

    Very informative article post.Really thank you! Fantastic.

  13. Battuello says:

    Really appreciate you sharing this article post.Much thanks again. Cool.

  14. Youwin giri says:

    Thanks again for the blog article. Really looking forward to read more. Awesome.

Leave a Reply

Your email address will not be published.

Thanks for commenting