Added facebook pixel like they showed here here Now getting an error:
fbevents.js:9 Facebook Pixel Error: Duplicate Pixel ID: some-pixel-id
Canno
This error will only occur if you try to initialize a pixel ID more than once, so you need to check all of the JavaScript code loading on your site and find where the multiple calls to init
your pixel ID are coming from.
Key area to check is to right-click on your site and click "View page source." Then check all referenced JavaScript files and any GTM containers you are referencing. I've heard of developers including the Facebook pixel code both in the of the site and in a GTM container, which would cause this error.
If you're having trouble finding the two init
calls, one of the easiest ways to look for specific JavaScript code on a site is to use Chrome Developer Tools. Press F12 to open the tools, press Ctrl+Shift+F to open the search panel, then type fbq
or whatever you are looking for. It will go through the sources it has loaded for the site and look for that code.