Search code examples
javascriptfacebookgoogle-tag-managerfacebook-pixelgoogle-datalayer

Facebook Pixel loads twice


I'm using Facebook pixel with Google Tag Manager , everything is working perfectly except that some times FB pixel loads twice with no Pixel Id

enter image description here

  1. In Google Tag Manager Facebook pixel base code Tag firing options is set to Once per page.
  2. Every tag that I'm using is set to fire after Facebook pixel base code in Advanced Settings > Tag Sequencing > Fire a tag before [My tag Name] fires > Setup Tag = Facebook pixel base code
  3. Facebook version is n.version='2.0';
  4. URL Called: in Facebook Pixel Helper is something like this https://www.facebook.com/tr/?batch=1&rqm=GET&dt=[SomethingRandom]

Solution

  • There is only one pixel on your website.

    The “ghost” one is the result of your cache and the way Pixel Helper works. PH is looking for any code that resembles a pixel and tries to test it. The cache is probably changing some parts of the code, creating this confusion.

    In reality, it does nothing and it doesn’t affect you in any way.