zsajjad / react-facebook-pixel

React JS wrapper for Facebook's Pixel
MIT License
241 stars 85 forks source link

pixel not working #28

Closed theweiweiway closed 5 years ago

theweiweiway commented 5 years ago

Hi, this is a very n00b issue but I am using this library with the Facebook Pixel Helper chrome extension and it is not detecting any pixels

Am I setting everything up right? My App.js looks like this:

import ReactPixel from 'react-facebook-pixel'; componentDidMount() { ReactPixel.init('my_id_here', {}, { autoConfig: false }) ReactPixel.pageView(); }

Is there something glaring I am doing wrong? I can't figure it out. Thanks

italobarbagelata commented 5 years ago

Hello,

not working for me

import ReactPixel from 'react-facebook-pixel';

default export is not declared in imported module import

version 0.1.3

plis!

italobarbagelata commented 5 years ago

Clean to npm

Edit version to "react-facebook-pixel": "0.1.1"

and install

working for me!

theweiweiway commented 5 years ago

sorry im an idiot. my adblocker was on