This is an old revision of the document!
How to create a Facebook Pixel
You will see how to create a web pixel, get the Pixel ID, Create an Access Token and setup an ACL.
Create The Pixel
Go to The FB Business Manager Click on Green Add Icon on the left and then follow the steps
Step 1
Step 2
Step 3
Choose a Unique Name for your Pixel, avoid using the word pixel.
Step 4
Get the Pixel ID
Go to the overview of the Data Source and select Settings.
The Green Arrow Shows the location of your Pixel ID.
The Red Arrow Shows the location of the Create Access Token.
The Blue Arrow Shows the ACL.
Create the Access Token
Click on the Create Access Token button (Red Arrow in Settings)
Step 1
Step 2
Step 3
Step 4
Store the Access Key in a safe place, you are not able to retrieve it in the future and you will have to create a new one.
Step 5
Create the ACL
Click on the Create Allow List button (Blue Arrow in Settings).
Repeat the steps for all the domains you want the pixel to work for.
Step 1
Replace domain.tld with your own domain for example esgr.in
Step 2
Step 3
Check Domain ACL
After Adding the domains you can check in the settings (bottom of the page) for all the domains you added.
Delete Pixel
It is not possible to delete a pixel from your account, but you can disassociate it from any FB Assets. Visit Facebook Business Manager → Business Settings → Data Sources → Pixels
Select the Pixel you don't need anymore and then on the details select Connected Assets
Click on the Trash Icon next to all of the assets listed.
Dont forget to remove the Pixel ID from your site/app.