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

busy-air-96466

10/09/2023, 9:21 AM
Hiya, I'd just like to check how something works please, so I can answer questions within my team? I have two features with associated experiments set up in GrowthBook. Below is the data which the GrowthBook platform supplies via the sdk network query. This provides information about features, but not experiments. My web app uses the useFeatureIsOn hook, and the GrowthBook DevTools shows that the experiments are active. What code determines that? I'm not seeing any other network call to the GrowthBook platform. Is it the front end code (via useFeatureIsOn) that decides whether an experiment is active? How does it know about the experiments? Thank you!
{
"status": 200,
"features": {
"feature-hoverable-nav": {
"defaultValue": false,
"rules": [
{
"coverage": 1,
"hashAttribute": "id",
"namespace": [
"categories",
0,
0.5
],
"seed": "feature-hoverable-nav",
"hashVersion": 2,
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"key": "feature-hoverable-nav",
"meta": [
{
"key": "0"
},
{
"key": "1"
}
],
"phase": "1"
}
]
},
"feature-support-resources-a-a": {
"defaultValue": false,
"rules": [
{
"coverage": 1,
"hashAttribute": "id",
"namespace": [
"categories",
0.5,
1
],
"seed": "feature-a-a",
"hashVersion": 2,
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"key": "feature-a-a",
"meta": [
{
"key": "0"
},
{
"key": "1"
}
],
"phase": "1"
}
]
}
},
"dateUpdated": "2023-10-06T16:56:35.265Z"
}
f

fresh-football-47124

10/09/2023, 2:31 PM
Hi Shelagh - that is an experiment - you can tell becasue it has ‘variations’ in the payload
b

busy-air-96466

10/09/2023, 3:56 PM
Thanks! So experiments now appear under features?
f

fresh-football-47124

10/09/2023, 3:56 PM
There are two sides to every experiment - how you assign it, and how you analyse it
in GrowthBook, we link the two
b

busy-air-96466

10/09/2023, 4:46 PM
Cool, thanks. So it's the SDK which evaluates whether this particular user is in the experiment, based on the features and experiments defined above, using the seed, hash algorithm, id and so on.
f

fresh-football-47124

10/09/2023, 5:07 PM
yes
2 Views