zsajjad / react-facebook-pixel

React JS wrapper for Facebook's Pixel
MIT License
233 stars 86 forks source link

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

Open igmodop opened 3 years ago

igmodop commented 3 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...