hi, general question here regarding reporting usin...
# ask-questions
e
hi, general question here regarding reporting using GA4 as our data source for experiments. We're using nextjs, and sometimes have users enter a feature on the first page of a flow, lets say Step1, and at the end of the flow we may end up on a completely different page.tsx/route. we will need to do something there as well based on the experiment being true or false. we end up sending multiple
experiment_viewed
events to GA4 in this case. does this affect reporting on experiments in Growthbook? what is a workaround to avoid this when changing pages completely?
if it does affect reporting, wondering if there is a way to get the value of the variations without tracking data being generated if server side, or without the onExperimentViewed callback being fired?
got answer from support for anyone else that is curious:
Copy code
Multiple trackingCallback or experiment viewed events are fine and will be handled (de-duped) by the platform. Typically you want to have the exposure event close to the actual experiment changes you're making. If this cannot be done for practical reasons, you can use activation metrics.
👍 2