Create a Facebook Pixel
Step 1: Create a Dataset on Facebook Ads
-
Log in to Facebook Business Manager:
- Go to Facebook Business Manager and log in with your account credentials.
-
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.
-
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
-
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.
-
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.
-
Verify the Pixel is Working:
- To ensure the Pixel is firing correctly on your site, use the Facebook Pixel Helper Chrome 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.
-
Go to the Meta Launcher on the Advertise tab
- Within the Targeting section, tap on Retargeting
-
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.
-
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.