https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
l

lemon-beach-14161

03/20/2024, 11:33 AM
Hi everyone, while I tested the 2 versions of the experiment with this function growthbook.setAttributes({ id: TRY RANDOM NUMBERS, }) random users and everything works well. After I deployed the website all the 20 users I tried get the default value of the feature (only true in my case), while my experiment is 50%-50%. That's why I'm not sure if everything works correct at deployed site and if the experiment is enabled, because my Growthbook dashboard doesn't collects data yet (the experiment started before one week, and my website has traffic). Any idea what's going wrong? Thank you!
f

fresh-football-47124

03/20/2024, 2:55 PM
what is your event tracker?
l

lemon-beach-14161

03/20/2024, 3:34 PM
GA4
f

fresh-football-47124

03/20/2024, 3:34 PM
with GTM?
l

lemon-beach-14161

03/20/2024, 3:35 PM
Yes
f

fresh-football-47124

03/20/2024, 3:36 PM
you likely have to add the custom event to GTM to enable it to be passed to GA4
we added a lot of documentation around this
l

lemon-beach-14161

03/20/2024, 3:38 PM
sorry, I set up growthbook with ga4 and big query https://docs.growthbook.io/guide/GA4-google-analytics
Should I also do it with gtm?
f

fresh-football-47124

03/20/2024, 3:38 PM
you'll want to make sure you're seeing experiment viewed events in GA4
no, you don't have to
l

lemon-beach-14161

03/20/2024, 3:40 PM
so should i check the doc you provide me or something else?
f

fresh-football-47124

03/20/2024, 3:40 PM
check in GA4 itself
do you see any events that match what you set in the trackingCallback? (if you didn't use our no-code script)
l

lemon-beach-14161

03/20/2024, 3:44 PM
thank you very much, I think I found the problem
f

fresh-football-47124

03/20/2024, 3:44 PM
ok
5 Views