Hi Team! Where or how do I deploy the code from th...
# announcements
l
Hi Team! Where or how do I deploy the code from the test? Without using visual editor?
b
Hey, Lucas! Are you looking to launch an experiment in your app?
In general, you'll need to create an SDK Connection within your GrowthBook account - that's where you can define your stack, and we provide some starter code that you can add to your app in order to connect to GrowthBook.
l
but if I need to create a test from zero, using code, where do I put it? I still use SDK?
b
If you haven't created an experiment, you'll first do so in your GrowthBook account by creating a
Feature
and then adding an
Experiment Rule
to it - e.g. split traffic 50/50. And then, using the SDK connection, you can make a call to GrowthBook to get a list of features and bucket users. What stack does your app use? Our docs have some great examples of how to add our SDKs to your app and connect to your GrowthBook account. https://docs.growthbook.io/lib/
l
Actually I'm an CRO Analyst, and with the google optimize end, we trying to find a new one. We liked that one but in the most of times we create tests from zero, using javascript
Now I know we need to create an experiment, SDK Connection, etc, but where do I put the code that I created to run the test?
b
Ah - gotcha! Typically, if you have access to the source code of the app you're looking to run experiments on, you'd add the SDK code close to the root element of your application (Something like the
App
component in React). Alternatively, if you don't have access to the source code, you can add the GrowthBook code to a site via Google Tag Manager. We have a guide on how to do this here.
l
thank you so much! I really aprecciate it!