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

Cmd "track" fires on all inited pixels before #33

Open
MrEcl opened this issue Feb 24, 2021 · 0 comments
Open

Cmd "track" fires on all inited pixels before #33

MrEcl opened this issue Feb 24, 2021 · 0 comments

Comments

@MrEcl
Copy link

MrEcl commented Feb 24, 2021

Describe the bug
There is an issue with multiple pixels. All the inited pixels fire 'track' command, no matter at what page you are.

To Reproduce
Steps to reproduce the behavior:

  1. Init pixel A
  2. Init pixel B by visiting specific page url
  3. Go back to page with pixel A
  4. Run query method with cmd 'track'
  5. Pixel A and Pixel B fire 'track'

Expected behavior
Only pixel A should fire track

Additional context
This problem is described in FB Pixel doc: https://developers.facebook.com/docs/facebook-pixel/implementation/accurate_event_tracking/

Instead of running fbq('track', 'PageView'); should be fbq('trackSingle', '<PIXEL_A>', 'PageView')

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

1 participant