A Facebook Pixel is a piece of JavaScript code for your website that enables you to measure and optimize, as well as build audiences for your ad campaigns. This also allows you to display remarketing ads and build custom conversions for users visiting specific pages of your website.


Here is an overview of how to install the Facebook pixel in under 5 minutes.


Step 1: Generate the Facebook Pixel from Facebook


  1. You will need to have a Facebook ad account created. Visit business center (https://business.facebook.com), navigate to “Tools” and then “Pixels“.
    how-to-install-facebook-pixel-on-wordpress-site-1

  2. Click “Create Pixel“, give it a name and then copy the script that appears on the next page.

    how-to-install-facebook-pixel-on-wordpress-site-2


Step 2: Copy and paste the Pixel code into your Website


  1. Login to your AMP site and go to your dashboard. On the left-hand navigation bar, click on “Site Setup“, then “Custom Code”.
  2. Copy and paste the code into either the header code area (be sure to check the instructions on where to add the code).

    Image_2018-01-16_at_10.31.24_AM.public.png


  3. Click update.