2.0.0 • Published 1 year ago

react-fbq v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

React Facebook Pixel

React Fbq is a package to help you in yours projects.

React JS wrapper for Facebook's Pixel

Install

npm install --save react-fbq

or

yarn add react-fbq

How to use

import ReactFbq from 'react-fbq';
const advancedMatching = { em: 'some@email.com' }; // optional, more info: https://developers.facebook.com/docs/facebook-pixel/advanced/advanced-matching

ReactFbq.initialize({ id: 'yourPixelIdGoesHere', advancedMatching: advancedMatching });
ReactFbq.pageView(); // For tracking page view
ReactFbq.track({ title: event, data: data }); // For tracking default events. More info about standard events: https://developers.facebook.com/docs/facebook-pixel/implementation/conversion-tracking#standard-events

Dev Server

In the folder demo

yarn install
yarn start

Default dev server runs at localhost:4000 in browser. You can set IP and PORT in webpack.config.dev.js

1.0.14

1 year ago

1.0.13

1 year ago

2.0.0

1 year ago

1.0.11

1 year ago

1.0.12

1 year ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago