zsajjad / react-facebook-pixel

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

Data parameter should be optional #27

Closed Joeao closed 4 years ago

Joeao commented 5 years ago

Based on the facebook-pixel documentation:

https://developers.facebook.com/docs/facebook-pixel/implementation/conversion-tracking#standard-events

All standard events are tracked by calling the pixel's fbq('track') function, with the event name, and (optionally) a JSON object as its parameters.

You can track custom events by calling the pixel's fbq('trackCustom') function, with your custom event name and (optionally) a JSON object as its parameters.

zsajjad commented 5 years ago

Can u please rebase it with master