facebook-eventsfacebook-pixel

Facebook pixel: fbevents.js cause error "Cannot read property 'replace' of undefined"


When I click certain elements on the page it throws this error enter image description here

enter image description here

Can anyone explain why is it happening?


Solution

  • When initializing:

    fbq('init', "your_app_id");
    

    your_app_id must be string