PHPackages                             cinghie/facebook-pixel-for-wordpress - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cinghie/facebook-pixel-for-wordpress

ActiveProject[Utility &amp; Helpers](/categories/utility)

cinghie/facebook-pixel-for-wordpress
====================================

Facebook Pixel plugins for wordpress

019PHP

Since Oct 6Pushed 6y agoCompare

[ Source](https://github.com/cinghie/facebook-pixel-for-wordpress)[ Packagist](https://packagist.org/packages/cinghie/facebook-pixel-for-wordpress)[ RSS](/packages/cinghie-facebook-pixel-for-wordpress/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (6)Used By (0)

Official Facebook Pixel
=======================

[](#official-facebook-pixel)

Grow your business with Facebook for WordPress! This plugin will install a Facebook Pixel for your page. There is also built in support for other WordPress plugins, such as Contact Form 7, Easy Digital Downloads, Ninja Forms, and WPForms. The Official Facebook Pixel allows you to fire lower funnel events: Lead, ViewContent, AddToCart, InitiateCheckout and Purchase. Tracking lower funnel events can help you understand the actions people are taking on your website. You can then use this information to make adjustments accordingly in your advertising campaigns.

Requirements
============

[](#requirements)

Official Facebook Pixel requires

- WordPress 4.4+ or higher
- PHP 5.3 or greater

Get started
===========

[](#get-started)

Clone this repo with the following command:

`$ git clone https://github.com/facebookincubator/facebook-pixel-for-wordpress.git`

Initiate the development environment:

1. Install Composer
2. Run the command to install the necessary package: `$ composer install`

Build the project and create the zip Run the command to run tests and create the zip under build directory.

`$ vendor/bin/phing`

Full Documentation
==================

[](#full-documentation)

How to integrate your plugins
=============================

[](#how-to-integrate-your-plugins)

1. Add your integration class under `integration/` folder
2. Extend the class from `FacebookWordpressIntegrationBase`
3. Define class variable `PLUGIN_FILE` to be your plugin PHP file
4. Define class variable `TRACKING_NAME` for tracking purpose, put this value under 'fb\_wp\_tracking' as a parameter in the pixel event
5. Define a public static function `injectPixelCode()` to inject pixel at your page
6. Add your unit test class under `tests/` folder
7. Extend the test class from `FacebookWordpressTestBase`
8. After the classes development, run tests by `$ vendor/bin/phing`

You can reference to integration/FacebookWordpressContactForm7.php and tests/FacebookWordpressContactForm7Test.php as an example

Contributing
============

[](#contributing)

See the CONTRIBUTING file for how to help out

License
=======

[](#license)

Official Facebook Pixel is GPLv2-licensed

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfedb99c8fcbaf668c4f9779d341997b84029673eda224241b11732981cbc8b2?d=identicon)[cinghie](/maintainers/cinghie)

---

Top Contributors

[![g233007](https://avatars.githubusercontent.com/u/44039878?v=4)](https://github.com/g233007 "g233007 (23 commits)")[![marvinkwok](https://avatars.githubusercontent.com/u/44272317?v=4)](https://github.com/marvinkwok "marvinkwok (18 commits)")[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (3 commits)")[![facebook-github-bot](https://avatars.githubusercontent.com/u/6422482?v=4)](https://github.com/facebook-github-bot "facebook-github-bot (1 commits)")

### Embed Badge

![Health badge](/badges/cinghie-facebook-pixel-for-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/cinghie-facebook-pixel-for-wordpress/health.svg)](https://phpackages.com/packages/cinghie-facebook-pixel-for-wordpress)
```

###  Alternatives

[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[mickgeek/yii2-actionbar

A control bar with bulk actions for the GridView widget.

3444.5k](/packages/mickgeek-yii2-actionbar)[miracuthbert/laravel-royalty

A user points package for Laravel that can be used to give rewards, loyalty or experience points with real time support

825.1k](/packages/miracuthbert-laravel-royalty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
