https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
q

quaint-scientist-80204

10/09/2021, 1:02 PM
can someone explain segments vs dimensions, aren't both a way to drill down into a subset of users?
f

future-teacher-7046

10/09/2021, 1:05 PM
Yeah, it's a little confusing right now. Dimensions are user attributes (browser, country, account type, etc.) that could have multiple values. So
browser
might have values Safari, Chrome, Firefox. Segments on the other hand identify a single group of users. So "Firefox users in EU" for example.
👍 1
Segments came first and aren't used for very many things anymore
We may get rid of Segments in the future since you can do almost everything with just Dimensions
👍 1
q

quaint-scientist-80204

10/09/2021, 1:17 PM
ahh okay good to know
e

early-tent-72446

10/13/2021, 2:45 PM
Can Segments be used with imported experiments? Would this be an option to get significance testing for a subset of users (as splitting by dimension does not allow it?)
f

future-teacher-7046

10/13/2021, 2:51 PM
We don't support adding a segment to an experiment right now, but I think it could make sense. Similar to an Activation Metric, it can help in those cases where the exposure logging includes people who did not actually view the experiment. One common example would be a change that only affects mobile browsers, but the exposure is logged from the server.
e

early-tent-72446

10/13/2021, 2:52 PM
Another example would be the exposure logging a page view, but some of its features are only visible to currently paying customers
(who we're running a test on)
f

future-teacher-7046

10/13/2021, 2:53 PM
I'll write up a GitHub issue for it. Shouldn't be too difficult to add since we have all the pieces already
e

early-tent-72446

10/13/2021, 2:59 PM
Sounds great, thanks!
I guess some more explanation or examples on how to use the segment feature would be useful too
main thing for us - getting optional stats on dimension level is already a win!
f

future-teacher-7046

10/19/2021, 6:06 PM
There's a PR in progress to add this feature (https://github.com/growthbook/growthbook/pull/127). Here's a mock-up of the new analysis settings for an experiment. Let me know if you have any feedback or if the UI isn't clear!
e

early-tent-72446

10/20/2021, 7:50 AM
seems good! the subqueries would cover every schema available under the configured data source connection, right? would be nice to have an example of use somewhere in the docs for it
f

future-teacher-7046

10/20/2021, 11:25 AM
Yeah, you can basically do
Copy code
user_id IN (
  SELECT user_id FROM ...
)
with any arbitrary query to only include specific users. Or use the same with
NOT IN
to exclude specific users.
1
This change is live now. There's a new "Configure Analysis" link on experiment results where you can see and change all of the analysis settings in one place.
👍 1
16 Views