Gathering detailed insights and metrics for @juanlatorre/react-facebook-pixel
Gathering detailed insights and metrics for @juanlatorre/react-facebook-pixel
Gathering detailed insights and metrics for @juanlatorre/react-facebook-pixel
Gathering detailed insights and metrics for @juanlatorre/react-facebook-pixel
React JS wrapper for Facebook's Pixel
npm install @juanlatorre/react-facebook-pixel
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
248 Stars
90 Commits
89 Forks
8 Watchers
23 Branches
20 Contributors
Updated on May 23, 2025
Latest Version
1.0.7
Package Id
@juanlatorre/react-facebook-pixel@1.0.7
Unpacked Size
22.62 kB
Size
7.84 kB
File Count
23
Published on
Jan 18, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
23
React JS wrapper for Facebook's Pixel
1npm install --save react-facebook-pixel 2
or
1yarn add react-facebook-pixel 2
React Facebook Pixel is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
1import ReactPixel from 'react-facebook-pixel';
2
3const advancedMatching = { em: 'some@email.com' }; // optional, more info: https://developers.facebook.com/docs/facebook-pixel/advanced/advanced-matching
4const options = {
5 autoConfig: true, // set pixel's autoConfig. More info: https://developers.facebook.com/docs/facebook-pixel/advanced/
6 debug: false, // enable logs
7};
8ReactPixel.init('yourPixelIdGoesHere', advancedMatching, options);
9
10ReactPixel.pageView(); // For tracking page view
11ReactPixel.track(event, data); // For tracking default events. More info about standard events: https://developers.facebook.com/docs/facebook-pixel/implementation/conversion-tracking#standard-events
12ReactPixel.trackSingle('PixelId', event, data); // For tracking default events.
13ReactPixel.trackCustom(event, data); // For tracking custom events. More info about custom events: https://developers.facebook.com/docs/facebook-pixel/implementation/conversion-tracking#custom-events
14ReactPixel.trackSingleCustom('PixelId', event, data); // For tracking custom events.
if you're bundling in CI
1 ... 2 componentDidMount() { 3 const ReactPixel = require('react-facebook-pixel'); 4 ReactPixel.default.init('yourPixelIdGoesHere'); 5 } 6 ...
otherwise CI will complain there's no window
.
To be GDPR compliant, revoke the consent right after init and grant it when the user accepts to be tracked
1 ...
2 ReactPixel.init('yourPixelIdGoesHere', advancedMatching, options);
3 ReactPixel.revokeConsent();
4 ...
5
6 ...
7 <button onClick={ReactPixel.grantConsent}>Accept cookies</button>.
8 ...
1npm run start 2
Default dev server runs at localhost:8080 in browser. You can set IP and PORT in webpack.config.dev.js
1npm run bundle
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/15 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
95 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More