Gathering detailed insights and metrics for @beemydesk/react-facebook-pixel
Gathering detailed insights and metrics for @beemydesk/react-facebook-pixel
Gathering detailed insights and metrics for @beemydesk/react-facebook-pixel
Gathering detailed insights and metrics for @beemydesk/react-facebook-pixel
npm install @beemydesk/react-facebook-pixel
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
63 Commits
2 Branches
Updated on Apr 18, 2020
Latest Version
0.2.4
Package Id
@beemydesk/react-facebook-pixel@0.2.4
Unpacked Size
21.66 kB
Size
7.23 kB
File Count
16
NPM Version
6.14.4
Node Version
14.2.0
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
22
React JS wrapper for Facebook's Pixel
1npm install react-facebook-pixel 2
or
1yarn add react-facebook-pixel 2
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
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 events and data https://developers.facebook.com/docs/ads-for-websites/pixel-events/v2.9
12ReactPixel.trackSingle('PixelId', event, data); // For tracking default events, more info about events and data https://developers.facebook.com/docs/ads-for-websites/pixel-events/v2.9
13ReactPixel.trackCustom(event, data); // For 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.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 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
98 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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