# 2.1. Instructions for installing Facebook Pixel on a Landing Page

Facebook Pixel is a JavaScript snippet provided by Facebook for advertisers. When you insert this code into your landing page, Facebook will help track and measure events on the landing page.

To set up Facebook Pixel, follow these steps:

#### Step 1: Log in to Ads Manager: <https://adsmanager.facebook.com/adsmanager/manage/campaigns>

#### Step 2: Click on the Ads Manager toolbar, select All Tools -> Business Settings.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FPH98AJBoXeD9XuVXCP1g%2Fimage.png?alt=media&#x26;token=e98600c6-45c2-4155-b4c6-f87de50e8a04" alt=""><figcaption></figcaption></figure>

#### **Step 3: Set up the pixel, select Data Sources** → **Pixels**.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2F9VPkxUSTuowoUEmrPrhn%2Fimage.png?alt=media&#x26;token=b823c79b-9a69-48f9-a526-8ac2a55f2e0d" alt=""><figcaption></figcaption></figure>

#### **Step 4: Click Add** → **Enter a name** → **Click Create to add a neu dataset.**

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FQ9jwkM3xCXF7JUt4wvZl%2Fimage.png?alt=media&#x26;token=7f4667ce-cba8-45e7-9ecc-e59ef19dcf43" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FovGU07BONQDZxqpgv6ZM%2Fimage.png?alt=media&#x26;token=bd843a19-c916-416b-a01c-aecb1a2290ae" alt=""><figcaption></figcaption></figure>

In the **Datasets** section, select the dataset you just created → **Open in Events Manager.**

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FkvWasK54yr2bkGw2AqCh%2Fimage.png?alt=media&#x26;token=215f7671-5396-4f5f-bc57-eec7321af196" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2F8C55b0kzWcsYLIcIcvQW%2Fimage.png?alt=media&#x26;token=325b2590-c6f7-49f4-b71c-c427f2d414d0" alt=""><figcaption></figcaption></figure>

#### **Step 5: Select Set up Meta Pixel** → I**nstall code manually**.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FLwI875noiy3AFAaY1Twg%2Fimage.png?alt=media&#x26;token=60e56e13-4a1d-45cc-8343-a613e0346fe9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2Fhmu35cCuUgTorZxXK0Ab%2Fimage.png?alt=media&#x26;token=cbf7c11a-01b8-460a-999b-0fc1775c266f" alt=""><figcaption></figcaption></figure>

#### **Step 6:** Copy code in the dialog box.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FQKMD3KJFQzqWy05sDN7A%2Fimage.png?alt=media&#x26;token=68660cf3-3d8c-41c0-a792-c51da7b17553" alt=""><figcaption></figcaption></figure>

#### Step 7: Add the code to your landing page.

To add the code to your landing page: Go to the **Editor** (Edit) page of your landing page → Select the **Settings** icon → **Code JavaScript/CSS** → Paste the code into the **"End of \<head> tag"** field and save it.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FEugLExQFTw0XXCaelm08%2Fimage.png?alt=media&#x26;token=b1c3ad3f-96de-4e5a-bfe7-56910a29868f" alt=""><figcaption></figcaption></figure>

Alternatively, you can take the **Facebook Pixel ID** from the Datasets section to add to your landing page. To do this: Go to the **Editor** (Edit) page of your landing page → Select the **Settings** icon → **Tracking Code** → Paste the **Facebook Pixel ID** into the **Facebook Pixel ID** field and save it.

<figure><img src="https://4288789091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZrhJDsqJxZMsvuaSaiJ%2Fuploads%2FCWfHyAK94jhwZ1HStm8t%2Fimage.png?alt=media&#x26;token=7b16800a-e574-4901-bd60-1c842667569d" alt=""><figcaption></figcaption></figure>
