Hello, We are implementing growthbook with nuxtjs. We encounter problem of how to switch between variations. It seems that
growthbook.forceVariation
does not work. Is there some other way to force variation?
When initializing the feature information is:
{
"value": true,
"on": true,
"off": false,
"source": "experiment",
"ruleId": "",
"experiment": {
"variations": [
true,
false
],
"key": "webtest-feature",
"weights": [
0.5,
0.5
],
"hashAttribute": "session_id"
},
"experimentResult": {
"inExperiment": true,
"variationId": 0,
"value": true,
"hashAttribute": "session_id",
"hashValue": "45274132-7196-4e23-8f8c-ceece9fc9d16"
}
}
After
growthbook.forceVariation('webtest-feature', 1)
it seems to be:
{
"value": true,
"on": true,
"off": false,
"source": "defaultValue",
"ruleId": ""
}