Hi Team, I have a question about A/B testing. We ...
# experimentation
b
Hi Team, I have a question about A/B testing. We have created an experiment, connected it, and it appears to be working. However, it is not tracking in our GA4. I found that the
experiment_viewed
event is being passed from GrowthBook. We are using the HTML script tag SDK. My question is, do we need to pass the user ID as anonymous since our site does not have an authorized user option? Is it necessary to send any additional attributes to GrowthBook for tracking? Thank you.
h
Our HTML Script SDK works by setting a random ID for bucketing users into experiments, but we rely on that ID being normally 1:1 with the GA4
user_pseudo_id
that should be in all of your GA4 track events. So you shouldn't need any additional config. Have you seen this section on tracking experiment views with the HTML script sdk? https://docs.growthbook.io/lib/script-tag#tracking-experiment-views