Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageView with event ID #82

Open
octocat512 opened this issue May 21, 2021 · 4 comments
Open

PageView with event ID #82

octocat512 opened this issue May 21, 2021 · 4 comments

Comments

@octocat512
Copy link

PageView event with Event ID for deduplication.

Hi, We're using this package and it's really good.
The only problem is related to deduplication.
We want to add eventID into PageView event.

In order to add eventID, I used this code.
ReactPixel.fbq('track', 'PageView', {}, { eventID });.
I put this code after initialization of ReactPixel package.
ReactPixel.init(PIXEL_ID);

When first page is loaded, since the above code is executed, the eventID is attaching to event info of PageView Event.
But after first page, for other pages, no eventID is attaching to event Info.
I added the above code for every pages ( ComponentDidMount ), but it seems that PageView event request is called automatically when page is loaded.
Is there any way to add eventID into PageView Event?

@moustafaMahran
Copy link

moustafaMahran commented Oct 24, 2021

Currently you cannot achieve this using the package.

In order to achieve deduplication you have to:

If you still find PageView events are logging automatically:

If you faced a problem that no PageView events are being tracked

  • set fbq.allowDuplicatePageViews = true after disable pushState

@danwetherald
Copy link

Is anyone maintaining this repo??

@danwetherald
Copy link

@taqiycarbon
Copy link

Hi, there are still no way of handling dedplication of events as of December of 2023 ?
Thanks guys !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants