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

Missing events when send event to multiple trackers #51

Open
dacsy opened this issue Jul 11, 2023 · 1 comment
Open

Missing events when send event to multiple trackers #51

dacsy opened this issue Jul 11, 2023 · 1 comment

Comments

@dacsy
Copy link

dacsy commented Jul 11, 2023

Hi everyone
I have a config multiple trackers, however when I try to send event to each tracker, it's missing events in the second tracker.

      ReactGA.initialize(tracker.trackingId);
      this.trackers.push({
        trackingId: tracker.trackingId,
      });
trackers.forEach((tracker) => {
    ReactGA.event(`Checkout started`, params); // Custom event
    ReactGA.event(`view_item`, params); // GA4 event
    ....
});

My first tracker work as expected. The second tracker are missing most of events.
What am I missing in the configuration ?

@JeremyGuinn
Copy link

See this multiple products test as an example on how to initialize multiple products (i.e. trackers). There is also this example in the readme.

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

2 participants