fancy-zoo-90893
04/12/2022, 6:40 AMstraight-businessperson-54316
04/12/2022, 7:02 AMlemon-stone-42630
04/12/2022, 1:08 PMgrowthbook.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": ""
}
fancy-zoo-90893
04/13/2022, 4:58 PMvictorious-printer-70656
04/14/2022, 9:53 AM$ wsrun -p '*-end' -m start
back-end
| $ node dist/server.js
front-end
| $ next start
| ready - started server on 0.0.0.0:3000, url: <http://localhost:3000>
| info - Using webpack 5. Reason: no next.config.js <https://nextjs.org/docs/messages/webpack5>
back-end
| Killed
| error Command failed with exit code 137.
| info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
| `yarn start` failed with exit code 137
little-river-61755
04/14/2022, 2:56 PMeager-camera-84109
04/14/2022, 4:18 PMquick-quill-58822
04/15/2022, 2:06 AMnumerous-hospital-35835
04/19/2022, 10:41 AMfresh-football-47124
broad-continent-77439
04/20/2022, 1:14 PM@growthbook/growthbook-react
with Next.js; current issue is that 👉 How can I get an experiment inside getServerSideProps
func and track it to segment too (window.analytics
) ?lively-fountain-60753
04/20/2022, 1:55 PMnumerous-hospital-35835
04/20/2022, 2:22 PMmillions-father-50159
04/20/2022, 6:24 PMstring
-> number
and back and it’s still coming through as a number
in the “Forced Value” rule.
(i.e. our array for the “$in” operator is coming through as [1, 2, 3, 4] instead of [“1”, “2", “3”, “4"])
So all of our forced values aren’t applying for this rules since it’s trying to match the string
we’re providing with a number
.miniature-apple-97656
04/22/2022, 4:49 AMthankful-librarian-70800
04/22/2022, 5:43 AMeager-camera-84109
04/22/2022, 2:30 PMbig-nightfall-62615
04/24/2022, 3:38 PMeager-camera-84109
04/25/2022, 10:31 PMgentle-evening-53052
04/26/2022, 5:13 PMlemon-stone-42630
04/26/2022, 7:12 PMtrackingCallback
fires only once per experiment view but our growthbook instance in server render and client-side do not communicate between each other and the view event is sent once on both.
Do we need to drop another one when making a query to the analysis, or can we leave it as is and analysis recognizes those experiment viewed events as coming from the single session? Or how have you worked around this? The feature we have affects on server-side code and client-side code so it will be triggered on both sides for the same user.miniature-apple-97656
04/27/2022, 5:11 AMfuture-teacher-7046
microscopic-queen-6171
04/27/2022, 8:25 AMlittle-australia-13313
04/27/2022, 1:25 PMearly-midnight-28212
04/28/2022, 11:56 AMbig-park-52103
04/29/2022, 3:36 PMmicroscopic-queen-6171
05/02/2022, 12:35 PMlate-spring-83291
05/03/2022, 8:19 AMelegant-king-58234
05/05/2022, 5:34 PM