---
title: How to set up a Facebook Pixel
description: This article will give you step by step instructions on how to successfully set up Facebook Pixel on your AgentFire site.
---

[Skip to content](https://support.agentfire.com/en/articles/1505057-how-to-set-up-a-facebook-pixel#main-content)

English

Show submenu for translations

[More support](https://support.agentfire.com/en/kb-tickets/new)

![color\_inverted@4x](https://support.agentfire.com/hs-fs/hubfs/color_inverted@4x.png?width=200&height=77&name=color_inverted@4x.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [More support](https://support.agentfire.com/en/kb-tickets/new)

 How can we help?

- There are no suggestions because the search field is empty.

1. [AgentFire Help Desk](https://support.agentfire.com/en)
2. [Integrations](https://support.agentfire.com/en/integrations)
3. [Facebook](https://support.agentfire.com/en/integrations#facebook)

# How to set up a Facebook Pixel

## This article will give you step by step instructions on how to successfully set up Facebook Pixel on your AgentFire site.

### Go to your Facebook Ad Manager

For this you'll need an active Facebook business page. For those who already have a page, [go here to create your facebook pixel](https://www.facebook.com/ads/manager/pixel/facebook_pixel/). If you don't already have a business page, [go here to create one](https://www.facebook.com/business/). Once you've done that, click the first link.

![1-Nov-30-2023-08-01-36-9300-PM](https://support.agentfire.com/hs-fs/hubfs/1-Nov-30-2023-08-01-36-9300-PM.png?width=688&height=334&name=1-Nov-30-2023-08-01-36-9300-PM.png)

### Copy the Facebook pixel code.

![2-Nov-30-2023-08-01-43-7846-PM](https://support.agentfire.com/hs-fs/hubfs/2-Nov-30-2023-08-01-43-7846-PM.png?width=688&height=448&name=2-Nov-30-2023-08-01-43-7846-PM.png)

### In your admin panel, go to Settings \> AgentFire Settings \> Header/Footer Scripts & Metas

![3-Nov-30-2023-08-01-51-1523-PM](https://support.agentfire.com/hs-fs/hubfs/3-Nov-30-2023-08-01-51-1523-PM.png?width=418&height=481&name=3-Nov-30-2023-08-01-51-1523-PM.png)

Here's the actual link if you want to just type it in once you're signed into your site: yoururl.com/wp-admin/admin.php?page=scripts-metas

### Paste the code in the "Facebook Pixel" section and hit "Update"

![4-Nov-30-2023-08-01-57-1012-PM](https://support.agentfire.com/hs-fs/hubfs/4-Nov-30-2023-08-01-57-1012-PM.png?width=688&height=180&name=4-Nov-30-2023-08-01-57-1012-PM.png)

Then cut the \<noscript\> part of the code out, and place it into the **body after opening tag**

![5-Nov-30-2023-08-02-02-9725-PM](https://support.agentfire.com/hs-fs/hubfs/5-Nov-30-2023-08-02-02-9725-PM.png?width=688&height=369&name=5-Nov-30-2023-08-02-02-9725-PM.png)

The reason you need to separate the \<noscript\> part of the Facebook Pixel Code is explained [here](https://sitebulb.com/hints/on-page/html-hints/head-contains-a-noscript-tag-which-includes-an-image/). (This is a more "techy explanation")  
**Short explanation** - the \<img\> tag is within the \<noscript\> tag, will break the \<head\> if it remains there.

### Edit The Code

Normally in the pixel there is only: fbq('track', 'PageView');

Copy and paste the below where the above code is, replacing the original "PageView" piece of code, with the below piece of code which is tracking "ViewContent". This is to ensure all of your ad campaigns run smoothly.

```
fbq('track', 'PageView');fbq('track', 'ViewContent');
```

Congratulations. You did it! :)

- [Site Tools](https://support.agentfire.com/en/site-tools#main-content)

    - [Area Guides](https://support.agentfire.com/en/site-tools#area-guides)
    - [Engage](https://support.agentfire.com/en/site-tools#engage)
    - [Guide Creator](https://support.agentfire.com/en/site-tools#guide-creator)
    - [Lead pages](https://support.agentfire.com/en/site-tools#lead-pages)
    - [Reviews](https://support.agentfire.com/en/site-tools#reviews)
    - [Team Members](https://support.agentfire.com/en/site-tools#team-members)
    - [Listings Hub (Formerly My Listings)](https://support.agentfire.com/en/site-tools#listings-hub-formerly-my-listings)
    - [Search pages](https://support.agentfire.com/en/site-tools#search-pages)
    - [Spark AI](https://support.agentfire.com/en/site-tools#spark-ai)
    - [QR Codes](https://support.agentfire.com/en/site-tools#qr-codes)
- [Spark Editor](https://support.agentfire.com/en/spark-editor#main-content)

    - [Spark Editor](https://support.agentfire.com/en/spark-editor#spark-editor)
    - [Lead Forms](https://support.agentfire.com/en/spark-editor#lead-forms)
    - [Menus](https://support.agentfire.com/en/spark-editor#menus)
    - [Redirects and Domain Masking](https://support.agentfire.com/en/spark-editor#redirects-and-domain-masking)
    - [Blogging](https://support.agentfire.com/en/spark-editor#blogging)
- [AgentFire IDX](https://support.agentfire.com/en/agentfire-idx#main-content)

    - [Property Alerts and Saved Searches](https://support.agentfire.com/en/agentfire-idx#property-alerts-and-saved-searches)
    - [Listing alerts](https://support.agentfire.com/en/agentfire-idx#listing-alerts)
    - [IDX Questions](https://support.agentfire.com/en/agentfire-idx#idx-questions)
    - [IDX Tools](https://support.agentfire.com/en/agentfire-idx#idx-tools)
- [Coaching and Success](https://support.agentfire.com/en/coaching-and-success#main-content)

    - [Monthly Success Checklist](https://support.agentfire.com/en/coaching-and-success#monthly-success-checklist)
    - [Tips & Tricks](https://support.agentfire.com/en/coaching-and-success#tips-tricks)
    - [Dashboard Deep Dive Webinars](https://support.agentfire.com/en/coaching-and-success#dashboard-deep-dive-webinars)
- [Launch](https://support.agentfire.com/en/launch#main-content)

    - [Email Routing](https://support.agentfire.com/en/launch#email-routing)
    - [Redirects and DNS Management](https://support.agentfire.com/en/launch#redirects-and-dns-management)
    - [Nameservers and Access](https://support.agentfire.com/en/launch#nameservers-and-access)
    - [Google Services](https://support.agentfire.com/en/launch#google-services)
- [Add-Ons](https://support.agentfire.com/en/add-ons#main-content)

    - [Team Link](https://support.agentfire.com/en/add-ons#team-link)
    - [ADA Protect](https://support.agentfire.com/en/add-ons#ada-protect)
    - [Home Values](https://support.agentfire.com/en/add-ons#home-values)
    - [Neighborhood Quiz](https://support.agentfire.com/en/add-ons#neighborhood-quiz)
    - [Local SEO Setup](https://support.agentfire.com/en/add-ons#local-seo-setup)
- [Integrations](https://support.agentfire.com/en/integrations#main-content)

    - [Instafeed](https://support.agentfire.com/en/integrations#instafeed)
    - [Zapier](https://support.agentfire.com/en/integrations#zapier)
    - [Facebook](https://support.agentfire.com/en/integrations#facebook)
    - [LionDesk](https://support.agentfire.com/en/integrations#liondesk)
    - [IDX](https://support.agentfire.com/en/integrations#idx)
    - [Lead Manager](https://support.agentfire.com/en/integrations#lead-manager)
    - [Intercom Chat](https://support.agentfire.com/en/integrations#intercom-chat)
    - [Ruuster](https://support.agentfire.com/en/integrations#ruuster)
    - [Follow Up Boss](https://support.agentfire.com/en/integrations#follow-up-boss)
- [FAQs and General](https://support.agentfire.com/en/faqs-and-general#main-content)

    - [Common Questions](https://support.agentfire.com/en/faqs-and-general#common-questions)
    - [Google Analytics](https://support.agentfire.com/en/faqs-and-general#google-analytics)
    - [IDX](https://support.agentfire.com/en/faqs-and-general#idx)
    - [General](https://support.agentfire.com/en/faqs-and-general#general)
- [Posts Launch Training](https://support.agentfire.com/en/posts-launch-training)
- [Google Search Console](https://support.agentfire.com/en/google-search-console#main-content)

    - [Google Search Console](https://support.agentfire.com/en/google-search-console#google-search-console)
- [Partner Program](https://support.agentfire.com/en/partner-program)
- [AgentFire Go](https://support.agentfire.com/en/agentfire-go)

[![Chill listening crop-3](https://support.agentfire.com/hs-fs/hubfs/AF%20Logo.png?width=96&height=24&name=AF%20Logo.png "Chill listening crop-3")](https://support.agentfire.com/)

Copyright © 2026, Dark Galaxy Limited DBA AgentFire.com