https://www.growthbook.io/ logo
j

jolly-raincoat-86650

02/09/2022, 1:55 PM
Hi all, Growth book newbie. I'm testing with GA4. Followed the advice mentioned in comment to send GA4 data into BigQuery. Should be I be sending these events (experiment_id and variation_id) into GA4 for experiments? Data has not sync'ed yet so I don't know what data will appear in BigQuery. Any further insights on how to set this up would be greatly appreciated. Thank you.
Copy code
SELECT
  user_id,
  anonymous_id,
  received_at as timestamp,
  experiment_id,
  variation_id
FROM
  experiment_viewed
f

future-teacher-7046

02/09/2022, 2:34 PM
You'll need to track an event in GA whenever someone is put into an experiment. Then, you would write the SQL to pull it out of BigQuery in that format. The query might not look exactly like what you pasted, but should be close. I'm not sure exactly how GA4 stores the data in BigQuery, but you might need to add a WHERE clause to that query in GrowthBook to pull the right events.
If you're using the SDKs, there's a
trackingCallback
setting you can use to fire that event in GA
j

jolly-raincoat-86650

02/09/2022, 4:51 PM
@future-teacher-7046 Thank you so much. 🙂
4 Views