Hi all, Growth book newbie. I'm testing with GA4. ...
# ask-questions
j
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
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
@future-teacher-7046 Thank you so much. 🙂