https://www.growthbook.io/ logo
#announcements
Title
# announcements
e

eager-judge-68908

09/22/2022, 2:37 PM
Hey! We've been using Growthbook for a little bit now with our Google Analytics UA implementation for A/B testing experiments, and it's been so great that we'd like to start running multiple, concurrent experiments. Per the docs, this isn't possible in universal analytics (although I supposed we could add a second experiment dimension), but it should be possible in GA4, as it doesn't seem to have the new limits. We're in the process of setting up GA4, but it's not clear to me how we can run concurrent experiments? Does anyone have any suggestions or resources for how to do so? I've looked for documentation, but not seeing anything so far. Thanks!
f

future-teacher-7046

09/22/2022, 2:40 PM
With GA4, instead of pulling data from the API (which is where the limitations come from), we require you to sync the data to BigQuery first. Google has an article on how to set that up. https://support.google.com/analytics/answer/9823238
Instead of using custom dimensions, you would just fire a new event in the SDK tracking callback with the experiment and variation id.
e

eager-judge-68908

09/22/2022, 2:54 PM
@future-teacher-7046 Thanks! Set up the export a little while ago. Do you have any SQL samples for querying GA4 data from BigQuery by chance? Still trying to figure out how to pull in the metrics we need to measure. If not, no worries. And would that new event in the callback look different from the one we currently use for GA UA? Thanks!
f

future-teacher-7046

09/22/2022, 3:13 PM
That event looks good to me. The dimension part is not required anymore, but it won't hurt anything.
For example queries, when you connect to BigQuery in GrowthBook, we ask you what event tracking system you use. If you pick GA4, we auto generate the queries for you.
You can see the code we use to build the default GA4 queries here https://github.com/growthbook/growthbook/blob/main/packages/front-end/services/datasources.ts#L36
e

eager-judge-68908

09/22/2022, 3:19 PM
Got it; thank you for your help!
15 Views