https://www.growthbook.io/ logo
i

important-vase-1811

06/29/2022, 12:50 PM
Hi, a few quick questions: ā€¢ Will doing the "Inline experiment" automatically create the experiment in GrowthBook just based on the events we send or do we still need to create the experiment? ā€¢ For people using it with Segment: ā—¦ Does or can GrowthBook send any automatic events via Segment (like experiment viewed) or do we need to explicitly add those in callbacks? Cause based on the docs here: https://docs.growthbook.io/app/features#experiments it sounds like it does tracking (sending events) automatically? ā—¦ Do we need to explicitly set an attribute for ID (user id or anonymous ID) on init or does it pick it up automatically from Segment data somehow?
f

fresh-football-47124

06/29/2022, 1:44 PM
1. Inline experiments will bucket and assign users, and fire the trackingCallback method. This is where you would add the segment track() method. Within the GrowthBook UI you would then have to create an experiment analysis to see the results of the experiment. The GrowthBook UI makes this pretty easy as it would see the new experiment data in your database, and prompt you to create it. 2. GrowthBook only fires the one trackingCallback event on experiment assignment (experiment viewed in the docs). You would need to add the Segment track event method there when you implement the SDK. All other events for other metrics your users do would also need to be tracked with Segment, and GrowthBook does not do this automatically. 3. You will need to tell GrowthBook SDK what the user ID is setting the user attributes (https://docs.growthbook.io/lib/js#attributes). By default, GrowthBook assigns users based on the "id" but you can change this if you prefer to use another name/attribute by setting the "hashAttribute" in the inlineExperiment.
We can help you with some example code if you share what language you're using.
i

important-vase-1811

06/29/2022, 2:19 PM
We've already got it up and running (with JS) and now we're waiting for Segment to ship events to our data warehouse so we can check the experiment analysis. We were just wondering how it works. šŸ™‚ Thanks for the answers!
And btw, it's an awesome tool! We've used Split.io before which was ridiculously expensive, but we dropped it because we weren't using it enough. So when we found GrowthBook it seemed like a godsend. šŸ˜„
f

fresh-football-47124

06/29/2022, 2:38 PM
šŸ‘
2 Views