Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Multiple trackers initialization #61

Open
misiyevich opened this issue Jan 10, 2023 · 2 comments
Open

Multiple trackers initialization #61

misiyevich opened this issue Jan 10, 2023 · 2 comments

Comments

@misiyevich
Copy link

misiyevich commented Jan 10, 2023

Hi, is there any difference in multiple ReactGA trackers initialization in comparison with old 'react-ga' module?
How i can to init two trackers and then call events for one and another? In your examples you initialize two trackers but don't show how to use them separately from each other.

@Typicallunchbox
Copy link

+1

.I have been wondering the exact same thing. Some guidance on how to selectively choose one would help a lot. Also with the reset functionality not working we cant reset and then re-initialize on the measurement_id we want to use.

@workssrs
Copy link

workssrs commented Sep 29, 2023

How can we use selective tracking id to send specific event only to specific Tracking id, or I am using same code base for two different products. If I have multiple tracking id like
ReactGA.initialize([
{
trackingId: "your GA measurement id",
gaOptions: {...}, // optional
gtagOptions: {...}, // optional
},
{
trackingId: "your second GA measurement id",
},
]);

Please suggest

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

No branches or pull requests

3 participants