How To Integrate Facebook Pixel with Google Tag Manager

Download PDF
Facebook Pixel Implementation via GTM

If you already use Google Analytics to track your marketing behaviour, it is a good idea to implement Facebook Pixels with the help of GTM (Google Tag Manager). With this you have an opportunity to track transactions and events, seamlessly on your site. As a result, you are able to prove your Facebook ad success (or failure), when building valuable data for future retargeting.

What Is Facebook Pixel

Facebook Pixel is a tool for setting up retargeting, optimizing ads and tracking conversions.

  • Create target groups: With FB pixel, you can create a target group from people who undertake certain actions, or visit specific pages on your site (and on any other domain as well).
  • Optimize ads: This tool allows you to optimize your ads for more conversions (for example, Facebook can use it to display ads to the people who have already visited your site's order page, but haven't finished the purchase).
  • Track conversion: You can track the performance of your ads by recording conversion events (such as sign-ups or orders). You can find all the information in the reports.

Just like in Google Analytics, you can use this information for Facebook to:

  • Target potential customers
  • Better justify ad expenses

Why FP is so important?
Facebook is an important social media platform that can generate a large volume of traffic to your site.

By using this tool, you can collect detailed data on actions and conversions resulting from Facebook traffic.

This can provide you with:

  • A broader audience
  • Different promotions and ads experiences

The icing on the cake is that Facebook Pixel can be integrated into your site in different ways, including using it  with Google Tag Manager!

How to Set up Facebook Pixels Using Google Tag Manager?

If you use Google Tag Manager to manage code on your site and want to set up Facebook Pixels, follow these steps:

Set the basic Facebook pixel code:

  1. Open Google Tag Manager
  2. Select the container for your website and click Add a new tag.
  3. Click Custom HTML Tag.
  4. Enter the name of the tag.
  5. Go to your pixel page on Facebook
  6. Click Actions> View Pixel Code.
  7. Copy all the basic code as shown below.

  1. Go back to Google Tag Manager and insert the code into the HTML container.
  2. Click the Advanced Settings drop-down list and select Once per page on the Tag firing options.
  3. In Fire On, select All Pages.
  4. Tap Create Tag

 

Create action tags

After setting up the basic code, you can create special tags for different types of pages and events on your website, such as product pages, add to cart buttons, shopping pages.

  • First, create a new custom HTML tag.
  • Enter the name of the tag, and paste the code snippets associated with the event and other variables, which are needed to be tracked. Keep in mind that the variables (such as "product_ids" and "product_name") may be different from the following examples.
  • In the Advanced Settings drop-down list, select the Once per event option under Tag firing options.
  • In Tag Sequencing, check the box and select the basic code tag so that this tag works according to the basic code.
  • In Fire On, select the trigger which right for your site.
  • Click Create tag

Make sure the pixel is working.

After loading all the events, check that the pixel has been triggered correctly. To verify that this is working properly on your website, follow these steps.

  • Go to the web page where the pixel was set. If it is working, it will send the information back to Facebook, and you will see activity on the Facebook pixel page in Ads Manager. The status will also change to Active.

Note that the activity column displays all conversions, regardless of whether they are related to ads.


Remember, you need to use the Chrome browser to do this.

  • Once the  “Helper" is installed, a small icon appears next to the address bar. Go to your website in Chrome and click the "Pixel Helper" icon.

        

A pop-up window will show which pixels were found on the page, and were successfully downloaded. If they are not loaded, you will even be able to find out why.

Final Thoughts

Facebook Pixel is an efficient analytics tool that helps you measure the performance of Facebook campaigns, based on what users are doing on your website. With its help, you could know much more about your user’s behaviour, and to create better targeted campaigns directly in your Facebook Ad Manager account.

Using GTM to integrate your Facebook Pixel is a simple way, and based on this example you can implement integration with all social networks, which you would like to track in detail. So, it’s a well-rounded solution to increase your ad campaign efficiency for all social channels.

 

 

 

 

 

Co-Founder & Managing Director
With a passion for leveraging technology to solve complex business challenges, Pavel has played a pivotal role in Magora's growth and success.
open
related
Why Is a CTA Button Important for Your Site? Order Management System: Meaning of OMS Why SSL/ TLS Is Not as Secure as You May Think Your Guide to Taking Awesome Screenshots
recent
3 Ways AI is Shaping the Future of Sustainability How to Develop an AI Chatbot for Your Real Estate Business Generational nuances: crafting the user experience in 2024 VisionOS App Development: The Era of Spatial Computing
recommended
Everything You Want to Know About Mobile App Development App Development Calculator Infographics: Magora development process Dictionary
categories
News Technologies Design Business Development HealthTech IoT AI/ML PropTech FinTech EdTech Mobile Apps Discovery Transport&Logistics AR/VR Big Data Sustainability Startup Enterprise Security
Logo Magora LTD
close
Thank you very much.
Magora team

Grab your e-book: Design to attract more buyers

Logo Magora LTD
close
Get in touch
Open list
Open list
Logo Magora LTD
close
Thank you very much.

Your registration to the webinar on the 27th of September at 2 p.m. BST was successfuly completed.
We will send you a reminder on the day before the event.
Magora team
Registration for a webinar

"Let Smart Bots Speed up your Business"
Date: 27.09.2018 Time: 2 p.m. BST
Do you agree to the personal data processing?


Logo Magora LTD
close
Download our curated selection of resources for accelerating your software development journey.