I am using some Javascript that I got from Facebook to do pixel โtrackingโ. But when I use Facebook Pixel Helper to make sure everything is working correctly, it indicates an error and the pixel is activated several times. He does not give any instructions on how to resolve such an error, or even where to look. Could there be changes to this code from Facebook that would prevent this multiple firing?
<script> (function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } _fbq.push(['addPixelId', '368842449990820']); })(); window._fbq = window._fbq || []; window._fbq.push(['track', 'PixelInitialized', {}]); </script> <noscript> <img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=368842449990820&ev=PixelInitialized" /> </noscript>
javascript facebook-graph-api tracking facebook-pixel
juniorspecial
source share