Search code examples
facebookfacebook-appsfacebook-pixel

Why Facebook Pixel Helper found two pixels on page - PageView and fb_page_view?


I got website with facebook login, anatitycs and also I added basic facebook pixel.

[1] https://i.sstatic.net/FuxOu.png "Facbook App snip"

Suddenly I noticed that the Facebook Pixel Helper Chrome extension shows that there are 2 pixels found on the site. All the time there was only one (PageView)

Where did the other (fb_page_view) come from?

[2] https://i.sstatic.net/OCbMY.png "Facebook Pixel Helper snip"

I looked at the results of both and each of them shows different statistics

Facebook Pixel code in my page:

<!-- Facebook Pixel Code -->
        <script>
            !function (f, b, e, v, n, t, s) {
                if (f.fbq) return;
                n = f.fbq = function () {
                    n.callMethod ?
                        n.callMethod.apply(n, arguments) : n.queue.push(arguments)
                };
                if (!f._fbq) f._fbq = n;
                n.push = n;
                n.loaded = !0;
                n.version = '2.0';
                n.queue = [];
                t = b.createElement(e);
                t.async = !0;
                t.src = v;
                s = b.getElementsByTagName(e)[0];
                s.parentNode.insertBefore(t, s)
            }(window, document, 'script',
                'https://connect.facebook.net/en_US/fbevents.js');
            fbq('init', '7095...'); // Insert your pixel ID here.
            fbq('track', 'PageView');
                    </script>
        <noscript>
            <img height="1" width="1" style="display:none"
                 src="https://www.facebook.com/tr?id=7095...&ev=PageView&noscript=1"/>
        </noscript>
        <!-- End Facebook Pixel Code -->

Why Chrome FB Pixel Helpers shows two different pixels? I'm expecting only one pixel - PageView, that I added (code above)


Solution

  • You had autoLogAppEvents set to true in your initialization of the Customer Chat SDK (which itself is just an extension of the “standard” JS SDK), and that causes it to do its own tracking, using the app id as pixel id.