Skip to content

How to Track Facebook Pixel Events in WordPress?

Key Takeaways

  • Nexter Blocks Event Tracking extension tracks WordPress website events with Facebook pixel, and the extension is part of Nexter Blocks.
  • Facebook Pixel ID is added in Nexter → Extra Options → Settings by enabling Add Event Tracking ID, opening the settings icon, and saving the ID in the Facebook Pixel ID field.
  • Nexter Blocks event tracking supports buttons, forms, and custom links, and the Event Type dropdown includes standard Facebook events plus custom Facebook events such as Purchase.
Table of Contents

The Meta pixel counts page views on its own. What it cannot see is which button someone pressed — and that is what your ad optimisation actually needs.

This sends a standard pixel event when someone interacts with a block.

For every Event Tracking setting in one place, see the event tracking guide.

Before You Start

  • Edition: Pro — event tracking needs Nexter Blocks Pro.
  • Block to enable: Event Tracking, switched on under Nexter > Blocks in your WordPress dashboard.
  • A Meta pixel ID, entered in Nexter’s settings.
  • Event tracking switched on in those settings.

Save the event tracking setting as enabled before configuring the block. Measured: with it never saved, the published page carries no tracking markup even though the editor offers the options.

Steps

  1. Copy your pixel ID from Meta Events Manager.
Finding the pixel ID
  1. Paste it into Nexter’s settings.
Entering the pixel ID
  1. Switch event tracking on.
Enabling event tracking
  1. Select your block and open the Advanced tab.
The Advanced tab
  1. Turn on Facebook.
Choosing Facebook as the provider
  1. Choose the standard event that matches what the block does.
Nexter Blocks editor, Advanced tab, Event Tracking panel with Facebook Pixel switched on and the Event Type set to Purchase
  1. Publish.
Event Tracking panel with Facebook Pixel switched on and the default Event Type
  1. Confirm the event with the Meta Pixel Helper while you click the block.
  1. Check it appears in Events Manager.
  1. Use it as a conversion in your campaigns.
Using the event as a conversion

How It Behaves

  • Turn event tracking on in Nexter’s settings first. Measured: with the site-level setting unset, a block configured for both providers emitted nothing — no markup, no console message, no warning. With the setting enabled and nothing else changed, the same block immediately emitted its full tracking payload.
  • The event is sent by name. Read from the shipped script, a standard event results in fbq('track', <your event>).
  • The default is ViewContent, so change it deliberately.
  • Setting a pixel ID also fires a PageView on every page automatically, separately from any block. That happens as soon as the ID is saved.
  • Custom properties reach Google only. Read from the script: properties are merged into an object and passed on every Google call, while the Facebook calls are made with the event name alone. If you need properties on a Meta event, this feature will not send them.
  • The whole configuration is written onto the block. Measured: the block gains a tpgb-event-tracker wrapper and an inner element carrying a data-event-opt attribute holding the providers, the event type and name, and any custom properties. You can confirm your setup reached the page by looking for that attribute.
  • Only certain things inside the block fire an event. Read from the shipped script, this is the complete list, all on click: any link, a video play button, and the submit button of Mailchimp, WPForms, Everest Forms or Contact Form 7. A block containing none of those is tracked in name only.
  • Binding happens once, when the page loads. Blocks added to the page later by AJAX are not picked up.
  • Measured with Nexter Blocks Pro deactivated: a fully configured block emits no tracking markup at all. Event tracking is Pro only and does not degrade.

Limitations

  • What this page verified, and what it did not. The markup the block emits and the calls the script makes were measured. Whether an event arrives in your analytics account was not, and cannot be from the page source. Confirm arrival in the provider’s own tools.
  • Standard event names are Meta’s, not this plugin’s, and Meta changes them independently.
  • No parameters are sent with the event. Meta’s standard events accept parameters such as value and currency; this feature sends the event name alone, so a Purchase event carries no purchase value.
  • Browser tracking protection and consent tools block the pixel outright, in which case nothing is sent and the console says fbq is not defined.
  • Only links and a few form submit buttons fire it.
  • Pro only.

Troubleshooting

Pixel Helper shows nothing

Check the site-level event tracking setting first. Then check the console for fbq is not defined, which means the pixel library never loaded — usually a missing ID, a consent banner, or tracking protection.

PageView fires but my event does not

PageView comes from the pixel itself and proves only that the ID is correct. The block event is separate: confirm data-event-opt is present on the block in the page source.

My Purchase event has no value

This feature sends the event name without parameters. For value and currency you need a purchase integration rather than a block-level click event.

I need a name Meta does not offer

Use a custom event. See the custom Facebook events doc.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!