---
title: Create and connect a Facebook pixel
description: Learn how to create a Facebook Pixel or data set
---

[Skip to content](https://help.plai.io/article/create-a-facebook-pixel#main-content)

[Submit a Ticket!](https://help.plai.io/kb-tickets/new?hsLang=en)

Open main navigation

Close main navigation

- [Submit a Ticket!](https://help.plai.io/kb-tickets/new)

 How can we help you?

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

1. [Plai Help Center](https://help.plai.io/?hsLang=en)
2. [Connect Your Accounts](https://help.plai.io/connect-your-accounts?hsLang=en)
3. [Pixels & tracking](https://help.plai.io/connect-your-accounts?hsLang=en#pixels-tracking)

# Create and connect a Facebook pixel

**Step 1: Create a Dataset on Facebook Ads**

1. Log in to **Facebook Business Manager**:
   
     - Go to [Facebook Business Manager](https://business.facebook.com/) and log in with your account credentials.
2. Navigate to the '**Business Settings**':
   
     - From the Business Manager dashboard, **click on the settings** option (cog icon) in the bottom left corner.
     - Under the "**Data Sources**" section, click **Datasets**.
3. Create a **New Dataset**:
   
     - Under "Datasets" tap on **Add** on the top right corner and give it a clear name.
     - Once created, tap on the **Connected Assets** tab and then on **Connect Assets.**
     - Choose **Other Business Assets** and select the correct **Ad Account** from the selection menu to connect your dataset.
     - Click Add.

---

**Step 2: Connect the Facebook Pixel to Your Website**

1. Go to **Facebook Events Manager**:
   
     - From the Business Manager dashboard, click on the hamburger menu (three horizontal lines) in the top left corner.
     - Under the "**Advertise**" section, click **Events Manager**.
2. **Install the Facebook Pixel** on Your Website:
   
     - In the Events Manager dashboard, click on **Data Sources** on the left menu and make sure you're on the correct Dataset (it's the one you created on the previous step).
     - **Choose one** of the following methods:
     - **Manually add the Pixel code to your website**: Copy the Pixel base code and paste it in the section of your website’s HTML code on all pages.
     - **Use a Partner Integration** (e.g., Shopify, WordPress): If you’re using a third-party platform, you can follow their integration guide for installing the Pixel.
     - **Use Google Tag Manager**: If you use Google Tag Manager, you can add the Pixel code as a new tag in your Tag Manager dashboard.
3. **Verify the Pixel is Working**:
   
     - To ensure the Pixel is firing correctly on your site, use the [**Facebook Pixel Helper Chrome**](https://chromewebstore.google.com/detail/meta-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc) extension to check if the Pixel is active on your pages.

---

**Step 3: Create Audiences Using Your Pixel Data**

Now that the Pixel is connected and tracking events on your site, you can create custom audiences based on users' actions.

1. Go to the **Meta Launcher** on the **Advertise** tab
   
     - Within the **Targeting** section, tap on **Retargeting**
2. Create a **Custom Audience**:
   
     - Click **Create Website Audience**, then select your Pixel as the source.
     - Define your audience criteria (all website visitors or people who viewed specific pages).
     - Set the time frame for how far back you want to track actions (e.g., last 30 days).
     - Click Create Audience.
3. Use Your Dataset for More Targeted Ads:
   
     - You can now use the audience as targeting criteria for your ads.
     - If you wish to generate a Lookalike audience, head over to the **Lookalike Audience** tab and tap on **Create Lookalike Audience**.
     - Under the **Audience Source** you will be able to select the recently created Custom Audience.
     - The created audiences will show up on the **Retargeting** and **Lookalike audience** tabs. **You can also exclude any of these audiences from new campaigns**.

- [Start Here](https://help.plai.io/start-here?hsLang=en)
- [Connect Your Accounts](https://help.plai.io/connect-your-accounts?hsLang=en#main-content)

    - [Platform connections](https://help.plai.io/connect-your-accounts?hsLang=en#platform-connections)
    - [Troubleshoot Connections](https://help.plai.io/connect-your-accounts?hsLang=en#troubleshoot-connections)
    - [Pixels & tracking](https://help.plai.io/connect-your-accounts?hsLang=en#pixels-tracking)
    - [Account Management](https://help.plai.io/connect-your-accounts?hsLang=en#account-management)
- [Launch Campaigns](https://help.plai.io/launch-campaigns?hsLang=en#main-content)

    - [Campaign Management](https://help.plai.io/launch-campaigns?hsLang=en#campaign-management)
    - [Campaign features](https://help.plai.io/launch-campaigns?hsLang=en#campaign-features)
    - [Platform guides](https://help.plai.io/launch-campaigns?hsLang=en#platform-guides)
    - [Targeting & audiences](https://help.plai.io/launch-campaigns?hsLang=en#targeting-audiences)
    - [Blockers](https://help.plai.io/launch-campaigns?hsLang=en#blockers)
- [Creative & AI Tools](https://help.plai.io/creative-ai-tools?hsLang=en)
- [Optimize & Results](https://help.plai.io/optimize-results?hsLang=en#main-content)

    - [AI optimization](https://help.plai.io/optimize-results?hsLang=en#ai-optimization)
    - [Reading results](https://help.plai.io/optimize-results?hsLang=en#reading-results)
    - [Improve performance](https://help.plai.io/optimize-results?hsLang=en#improve-performance)
    - [Budget guidance](https://help.plai.io/optimize-results?hsLang=en#budget-guidance)
    - [Troubleshooting](https://help.plai.io/optimize-results?hsLang=en#troubleshooting)
- [Agency Operations](https://help.plai.io/agency-operations?hsLang=en#main-content)

    - [Agency setup](https://help.plai.io/agency-operations?hsLang=en#agency-setup)
    - [Client Management](https://help.plai.io/agency-operations?hsLang=en#client-management)
    - [Billing & subscription](https://help.plai.io/agency-operations?hsLang=en#billing-subscription)
    - [Reference](https://help.plai.io/agency-operations?hsLang=en#reference)

[mailto:getsupport@gmail.com](mailto:getsupport@gmail.com) <https://www.facebook.com/groups/533159132270676> <https://www.linkedin.com/company/plaiio/>

Copyright © 2025, Plai

#### Still need help?

Can't find what you're looking for? Our support team is here.

[Submit a Ticket](https://help.plai.io/kb-tickets/new?hsLang=en)