• N
    with-facebook-pixel (#19762) · dc4beade
    Nicolás Figueroa 提交于
    ## Problems with the other implementation
    - pixel not working first time load page (this generate fake information to facebook analytics data)
    - package react-facebook-pixel  error when try use events in code blocks or other pages with the current implementation
    - sometimes pixel mark twice pageview (this generate warning in facebook panel)
    - standar or custom events not working
    
    ## Solutions
    - Initialize pixel when entering each page (_document)
    - Now, we can use custom and standar events (utils/fpixel.js)
    - correct way to implement pixel according to facebook and guide facebook to implement in SPA
    - this solution is complemented with example "with-google-analytics"
    
    In my opinion, the other development has problems, but I preferred created a new example because the way to implement the base code is different. It seems that the other example is based on set the events from the Facebook control panel then this method limits an advanced implementation.
    dc4beade
index.js 458 字节