Meta Pixel Event Tracker for WooCommerce

Description

Meta Pixel Event Tracker for WooCommerce enables you to track key eCommerce events directly in your Meta (Facebook) Ads account, giving you better insights into your customers’ shopping behavior.
It allows you to selectively enable or disable event tracking for various WooCommerce pages and actions.

Features:
* Track ViewContent, AddToCart, InitiateCheckout, and Purchase events.
* Separate enable/disable controls for each page type (Shop, Product, Cart, Checkout, Categories).
* Supports WooCommerce default pages and custom shop/category pages.
* Inline JavaScript injection for faster execution.
* Lightweight and optimized for performance.

Common Use Cases:
* Optimize Meta Ads campaigns by tracking accurate WooCommerce events.
* Create retargeting audiences based on shopper behavior.
* Measure conversion performance for each product category.

Sources

This plugin uses the following third-party libraries:
– FB Events (https://connect.facebook.net/en_US/fbevents.js)

External services

This plugin connects to the Facebook Pixel service in order to provide website analytics and conversion tracking.
It loads the Facebook Pixel script from the following domain:
https://connect.facebook.net/en_US/fbevents.js

When enabled, this service may collect user data as described in Facebook’s terms and privacy policy.
– Terms of Service: https://www.facebook.com/legal/terms
– Privacy Policy: https://www.facebook.com/about/privacy

Screenshots

  • Plugin options inside the WordPress Settings menu.
  • Settings panel to enable or disable events by page type.
  • Proper error message displayed when the Pixel ID is invalid.
  • Example of Meta Pixel event debug output in the browser console.

Installation

  1. Upload the plugin files to the /wp-content/plugins/meta-pixel-event-tracker-for-woocommerce directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to Settings Meta Pixel Tracker to configure your settings.
  4. Enable event tracking for the pages you want (Shop, Cart, Checkout, etc.).
  5. Save changes — events will now be tracked automatically.

FAQ

Does this plugin work with WooCommerce custom shop pages?

Yes. As long as WooCommerce’s core functions detect the page type, tracking will work.

Do I need a Meta Pixel ID?

Yes. You must set up your Meta Pixel in your Meta Business Manager and add your Pixel ID in the plugin settings.

Can I disable tracking on certain pages?

Yes. The plugin has toggle switches in the settings to enable or disable event tracking for specific WooCommerce pages.

Will this plugin slow down my site?

No. The plugin loads minimal inline JavaScript and only runs on WooCommerce-related pages.

Reviews

There are no reviews for this plugin.

Contributors and Developers

“Meta Pixel Event Tracker for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

“Meta Pixel Event Tracker for WooCommerce” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Meta Pixel Event Tracker for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change Log

1.0.0

  • Initial release.
  • Added settings page to toggle event tracking for Shop, Category, Product, Cart, and Checkout pages.
  • Implemented inline JavaScript for faster execution.
  • Added support for Meta Pixel standard events: ViewContent, AddToCart, InitiateCheckout, Purchase.