hello! I'm trying to setup Growthbook with google ...
# ask-questions
p
hello! I'm trying to setup Growthbook with google analytics. i followed the steps provided here can see some metrics show up in the Metrics section of Growthbook. I've setup an experiment and started it, selecting two of the GA metrics in the result section. I've been waiting for data to show up but so far, nothing is there. is there anything else I'm missing in terms of configuration?
r
Hi Avi, there are a few common issues that users have encountered which might be causing you to not see any data after connecting GrowthBook to GA4.
1. ​*Permissions*​: Ensure that the service account used to connect BigQuery to GrowthBook has the necessary permissions. It should have at least the following roles: BigQuery Data Viewer, BigQuery Metadata Viewer, and BigQuery Job User.
1
2. ​*Tracking Callback*​: Verify that the ​`trackingCallback`​ function is set up correctly to send the ​`experiment­_viewed`​ event to Google Analytics. This function should be part of your GrowthBook configuration and should trigger whenever a user is exposed to an experiment. You can send me the code snippet if you want me to take a look at it.
1
3. ​*Google Tag Manager (GTM)*​: If you are using GTM, make sure that the tags and triggers for the ​`experiment­_viewed`​ event are set up correctly to send data to GA4.
1
4. ​*Data Propagation Delay*​: There might be a delay in data appearing in GrowthBook from GA4 via BigQuery. It's possible that you may need to wait for some time after setting up the connection and running experiments before you see data.
1
5. ​*BigQuery Data*​: Confirm that the data is actually present in BigQuery and that the tables and events you are querying for exist and contain the expected data.
6. ​*Query Configuration*​: Check if the SQL queries in GrowthBook are correctly configured to pull the relevant data from BigQuery. The queries should match the structure of your data in BigQuery. Go to your Data Sources tab and view the Experiment Assignment Queries. You can also view the Metrics query on each Metric's detail page. (Make sure you have the correct user permissions.)
p
thanks. i've confirmed some steps and will confirm more tomorrow.
👍 1
i think i've been missing the tag manager data layer variables. the
experiment_id
was not showing up in BigQuery for the
experiment_viewed
event. But using the preview mode/realtime analytics, it now appears to be working. i'll have to check tomorrow when the data is refreshed
image.png
r
Ah, yes, experiment­_id is definitely important. Let me know what you see tomorrow :-)
p
i think it's fixed. thanks for your help! might be good to add this step to the guide so people can setup GTM correctly
r
Great, glad it's working! Thanks for the feedback. I'll make a note to look into adding it.