brave-agent-21457
10/06/2023, 5:42 PM$growthbook = Growthbook::create()->withAttributes([
// Targeting attributes
'id' => time(),
'someCustomAttribute' => true
]);
$exp = InlineExperiment::create(
"my-experiment-1",
["A", "B"]
)->withWeights([0.6, 0.4]);
// Either "red", "blue", or "green"
$v = $growthbook->runInlineExperiment($exp)->value;
Is there anything I am missing here?happy-autumn-40938
10/06/2023, 5:56 PMid
field (or you can use another hashing field on the experiment via something like ->withHashAttribute("sessionId")
)?brave-agent-21457
10/06/2023, 7:20 PMfresh-football-47124
brave-agent-21457
10/06/2023, 7:21 PMfresh-football-47124
brave-agent-21457
10/06/2023, 7:23 PMfresh-football-47124
brave-agent-21457
10/07/2023, 1:21 PMfresh-football-47124