Hi! I am a web analyst at Aller Media, and we are...
# ask-questions
a
Hi! I am a web analyst at Aller Media, and we are currently testing out Growthbook as our new A/B testing tool. I have some questions regarding the dataLayer and how you should set up growthbook in respect to that. If we have more than one experiment that we want to run in parallel, how should the dataLayer pushes be implemented? And if we want to run more than one version at once?
r
Our official support hours are 6:30am - 5pm Pacific Time, Monday through Friday. You may occasionally hear from us outside of these hours. Your support request has been logged in our system. Our support team will get back to you very soon!
b
Hi Åke, thanks for reaching out! I’ve added your support request to the queue and we’ll follow up as soon as we can 😀
🙌 1
r
Hi Åke, based on your reference to dataLayer is it safe to assume you are using BigQuery and GA4? Most of our users are running multiple experiments at the same time and I'm not aware of any unintended effects from doing so. Are you specifically concerned about the same user being exposed to >1 experiment? Sorry, what do you mean by "running more than 1 version at once"? Are you referring to variations?
f
there is no problem with the dataLayer - each experiment is indexed by the experiment key, so you can run as many experiments in parallel as you like.
We also have namespaces which let you run mutual exclusive experiments
a
@brief-honey-45610 I am using GA4 and BQ! I got a question from my developers who want to know what data they should push, and where they pull this data from. I am not familiar at all with growthbook, maybe you could show me an example of what the dataLayer push should look like? And yes I was referring to variations! Thank you @fresh-football-47124! I appreciate it. I will look into namespaces.
If we want to add another experiment id, will we need to update our code, or is this done via the growthbook interface? Apologies if these questions are super dumb! As I said, I have no experience what so ever with growthbook.
I also got this message from one of my developers just now, it he right about this?
Just as a note, growthbook should not be handled through GTM, because manipulating page content through 3rd party scripts will cause hydration errors in React. That's why we have a growthbook SDK implemented in ocelot
r
I got a question from my developers who want to know what data they should push, and where they pull this data from.
They'll need to add the experiment­_id and variation­_id to the trackingCallback as described here: https://docs.growthbook.io/quick-start#step-4-add-an-additional-event-to-track-experiments Here is the guide for setting up GA4: https://docs.growthbook.io/guide/GA4-google-analytics The whole page is useful, but this last part in particular will help with the code aspect: https://docs.growthbook.io/guide/GA4-google-analytics#tracking-experiment-exposure
If we want to add another experiment id, will we need to update our code, or is this done via the growthbook interface?
It sounds like you'll be using in-line experiments via the SDK, so you'll need to configure the experiment with the UI dashboard and also make modifications to your code where the experiment should be triggered: https://docs.growthbook.io/experiments#inline-experiments
a
Many thanks August! It sounds like our developer is all on board with what you're describing! But I will make sure to double check this.
b
That's awesome, I'm glad to hear it 😎 Let us know if you need more help in the future
a
Will do! 🤙