Closed chiplay closed 8 years ago
@chiplay thanks for reporting this! good catch. Since we implore our customers to call page
in their routing handlers, we definitely will either want to noop
fb.page on subsequent calls or use disable the fb lib from triggering pageview pixels automatically.
_Looks like_ we can stem these dupes by setting a disablePushState
flag to true on the fbq
instance on the window. However, that's not a documented feature, so I'll want to confirm it's stable with the team @ FB before implementing. Will update as soon as I hear one way or the other!
I'm not exactly sure how this should affect this Segment FB Pixel implementation, but I've noticed some duplicate PageView calls on our app and after digging around, found that fbevents.js is overwriting pushState events and calling their PageView event automatically:
Just wanted to bring that to your attention so your team can dig in further and see what is going on under the hood with FB and see if there is a better solution to getting the two to play nice together.
Thanks!