jolly-chef-93830
02/22/2024, 6:49 AMfalse
to improve performance in server-side environments
enableDevMode: false,
// Important: make sure this is set to false
, otherwise features may change in the middle of a request
subscribeToChanges: false,
attributes: {
id: 101,
country: "US"
},
trackingCallback: (experiment, result) => {
// Example using Segment
// console.log("MMM", experiment,result)
// analytics.track("Experiment Viewed", {
// experimentId: experiment.key,
// variationId: result.key,
// });
},
});
// Clean up at the end of the request
res.on("close", () => req.growthbook.destroy());
// Wait for features to load (will be cached in-memory for future requests)
req.growthbook
.loadFeatures()
.then(() => next())
.catch((e) => {
console.error("Failed to load features from GrowthBook", e);
next();
});
});
I just wanted to know where
attributes: {
id: 101,
country: "US"
},
this attribute will store to maintain stickiness?fresh-football-47124
jolly-chef-93830
02/22/2024, 8:54 AMfresh-football-47124
fresh-football-47124
jolly-chef-93830
02/23/2024, 4:58 AMfresh-football-47124