How to add Facebook Pixel and setup events

In this article, you will learn how to integrate the Facebook pixel on different pages on and set up events.

You will need:

  • Facebook business account
  • Facebook ad account
  • account
  • Custom domain

1. Setup your Pixel

1.1 You will need to go to your Facebook business account, then click on "Business settings".

Now click on "Pixels" under "Data sources".

Click on "Add" and you will be presented with a popup where you can name your Pixel.

Once you have entered a name for your pixel, click on "Continue".

Another popup will appear that says "Your pixel isn't ready to use yet". You can close that popup as you first need to add "People" and "Assets" to your Pixel.

1.2 Click on "Add people", then on the popup select your business account. Click on the slider to give "Full access" and then click on "Assign".

1.3 Once completed, click on "Add assets".

You will be presented with another popup where you only need to tick the ad account, then click on "Add".

2. Install the Pixel on your website

2.1 Click on "All tools" and then click on "Events Manager".

2.2 Click on your Pixel and then click on "Continue Pixel Setup".

You will be presented with two options, "Conversion API" or "Meta Pixel".

2.3 Choose the "Meta Pixel" option and click on "Connect".

2.4 Now click on "Install Code Manually" below the "Manually add Pixel code to website" option.

You will now see the Meta Pixel code that needs to be added to the "Header code" of your funnel pages. If you want to install the code to all the pages of all of your funnels, you can put it in the "Tracking Code" field under "Sales funnel settings"

2.4.1 Adding the Facebook Pixel code from the sales funnel page settings

Go to the editor of your page, then click on  "Settings" on the left side of the editor, then paste the Facebook pixel in the  "Edit header code" box of the tracking section.
Finally, click on  "Save changes" at the top right of your editor to save the changes.

Note: It's important to include your Facebook Pixel code on all the pages of your sales funnel.

2.4.2 Adding the Facebook Pixel code from the sales funnel settings

It is possible to insert your Facebook Pixel code into the settings of the sales funnels, and it will automatically be deployed on the entire sales funnel. 

In order to do this, please go to your "Menu", click on the profile picture, then on "Settings". Next, go to the "Sales funnel Settings" and insert the Facebook Pixel code in the tracking code field.

2.5 Copy the code, install it on your website as mentioned above, and then click on "Continue".

Now you will be given the option to activate "Automatic advanced matching", this is optional and it is up to you.

Click on "Continue" to proceed.

You can now set up events on your website by clicking on "Open event setup tool".

The event setup tool doesn't always work and in this example, we will be manually adding the event code to the "Meta Pixel code".

2.7 For the manual option, click on "Install events using code" and you will be redirected to a page that shows you how to add events to the "Meta Pixel code".

In this example, we will only use the "Lead" event.

Now that you have manually added the events to the "Meta Pixel code", you can click on "Continue" on your Facebook business account side.

2.8 You will need to verify your domain now by clicking on "Verify domain".

Click on "Add", enter your domain, and then click "Add" again.

You will be given a "Meta-tag" that needs to be added to the "Header code" of your page or in the "Sales funnel settings" below the "Meta Pixel code" (leave a space between the two codes).

After you have added the code, click on "Verify domain" on the Facebook side.

2.9 After verifying your domain, click on "Go to Pixel Overview".

3. Test whether the Pixel is working

Now that your Pixel has been set up and installed, you can test it to see whether it is working.

Click on "Test events", enter the URL of your website in the field below labeled "Test browser events" and click on "Open Website"

You will then see the events listed below "Test events".

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.