How to Track Facebook Pixel Events in WordPress?

Updated on July 1, 2023 by Ananda

Table of Contents

Are you looking to harness the power of Facebook Pixel to track events on your WordPress website? Tracking Facebook Pixel events allows you to gain valuable insights into user behavior, optimize your marketing campaigns, and boost your conversion rates.

With the Event Tracking extension of The Plus Blocks for Gutenberg, you can easily track Facebook pixel events on your WordPress website.

To check the complete feature overview documentation of The Plus Blocks for Gutenberg Event Tracking extension, click here.

Requirement  – This extension is a part of The Plus Blocks for Gutenberg, make sure it’s installed & activated to enjoy all its powers.

To track Facebook events on your WordPress website, you must have Facebook pixels installed on your website.

Create Facebook Pixels

Log into your Facebook account and follow the steps – 

1. Go to Events Manager.

2. Click on the + icon.

facebook create pixel 1

3. Select Web and click on Connect button.

facebook create pixel 2

4. Add a name to your pixel and click the Create Pixel button.

facebook create pixel 3

5. Add your website URL and click on the Check button then click on the Next button.

facebook create pixel 4

6. On the next screen you’ll get your Facebook pixel id. The number mentioned below (excluding ID) your Pixel name is the pixel id. Copy the id and save it in a notepad.

facebook create pixel 5

Install Facebook Pixel using The Plus Blocks for Gutenberg

To install the Facebook pixel using The Plus Blocks for Gutenberg, follow the steps – 

Note: If you’ve added Facebook pixels id on your website using any other method or plugin then you don’t need to follow this step.

1. Go to The Plus Settings > Extra Options.

2. Scroll down to the Facebook Pixel Id section and add the pixel id then click on the Save button.

add facebook pixel id

Once you’ve added your Facebook pixel id, you can use buttons, forms or any custom links on blocks from The Plus Blocks for Gutenberg to track events. So, for instance, add the button block from The Plus Blocks for Gutenberg on the page.

1. Go to Advanced > Event Tracking

2. Turn on the Facebook Pixel toggle.

3. In the Event Type dropdown, you’ll find all the standard Facebook events and the option to create custom Facebook events.

event tracking add facebook event

Select the event you want to track. Suppose we want to track purchase events, so select Purchase from the dropdown.

4. To check the event, install the Meta Pixel Helper Chrome extension. 

5. Open the page in Chrome and then click the Meta Pixel Helper icon you’ll see the default PageView event.

facebook pageview event

6. Then click the button and again click the Meta Pixel Helper icon. Now you’ll see the Purchase event along with the PageView event.

facebook purchase event

7. After a few minutes, you’ll be able to see the event showing up in the Events Manager section on Facebook.

tracked facebook events list

Also, read How to Track Google Analytics 4 Events With WordPress.