zsajjad / react-facebook-pixel

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

How do you set up dataProcessingOptions with react-facebook-pixel? #69

Open igmodop opened 4 years ago

igmodop commented 4 years ago

I tried something like this:

    const advancedMatching = {}; 
    const options = {
        autoConfig: true, 
        debug: false,    
    };
    ReactPixel.fbq('dataProcessingOptions', ['LDU'], 0, 0);
    ReactPixel.init('xxxxx', advancedMatching, options);
    ReactPixel.pageView();

But it didn't work. What am I missing?

JuanuMusic commented 2 years ago

I'm assuming this component does not support the option. This was a new adition to facebook's fbq...