-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated README.md
- Loading branch information
Showing
6 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ npm-debug.log | |
.c9 | ||
package-lock.json | ||
.vscode/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
registry=https://npm.pkg.github.com/zsajjad | ||
registry=https://npm.pkg.github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,29 +7,29 @@ | |
## Install | ||
|
||
```bash | ||
npm install --save react-facebook-pixel | ||
npm install --save @zsajjad/react-facebook-pixel | ||
|
||
``` | ||
|
||
or | ||
|
||
```bash | ||
yarn add react-facebook-pixel | ||
yarn add @zsajjad/react-facebook-pixel | ||
|
||
``` | ||
|
||
## Sponsors | ||
|
||
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 | ||
|
||
<a href="https://tracking.gitads.io/?repo=YOUR_REPO"> | ||
<img src="https://images.gitads.io/YOUR_REPO" alt="GitAds"/> | ||
<a href="https://tracking.gitads.io/?repo=react-facebook-pixel" target="_blank"> | ||
<img src="https://images.gitads.io/react-facebook-pixel" alt="GitAds"/> | ||
</a> | ||
|
||
## How to use | ||
|
||
```js | ||
import ReactPixel from 'react-facebook-pixel'; | ||
import ReactPixel from '@zsajjad/react-facebook-pixel'; | ||
|
||
const advancedMatching = { em: '[email protected]' }; // optional, more info: https://developers.facebook.com/docs/facebook-pixel/advanced/advanced-matching | ||
const options = { | ||
|
@@ -50,7 +50,7 @@ if you're bundling in CI | |
```js | ||
... | ||
componentDidMount() { | ||
const ReactPixel = require('react-facebook-pixel'); | ||
const ReactPixel = require('@zsajjad/react-facebook-pixel'); | ||
ReactPixel.init('yourPixelIdGoesHere'); | ||
} | ||
... | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters