quiet-pharmacist-40710
01/09/2025, 5:41 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
quiet-pharmacist-40710
01/09/2025, 6:59 PMfresh-football-47124
quiet-pharmacist-40710
01/09/2025, 6:59 PMfresh-football-47124
fresh-football-47124
quiet-pharmacist-40710
01/09/2025, 7:00 PMquiet-pharmacist-40710
01/09/2025, 7:01 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
quiet-pharmacist-40710
01/09/2025, 7:02 PMquiet-pharmacist-40710
01/10/2025, 1:38 PMquiet-pharmacist-40710
01/16/2025, 1:35 PMgrowthbook = GrowthBookBuilder(
apiHost: Environment.current.growthbook.apiHost,
clientKey: Environment.current.growthbook.clientKey,
attributes: Self.getAttributes(from: user),
trackingCallback: { experiment, experimentResult in
// Ensure the experiment is active and the user is part of it. Although the documentation states this method is "Called whenever someone is put into an experiment", this makes it safer in case that's not always true.
guard experiment.isActive, experimentResult.inExperiment else {
return
}
Logger.shared.print("In experiment", mode: .local, info: ["Experiment": experiment.key, "Value": experimentResult.value.rawValue])
Self.trackExperiment(experiment: .init(key: experiment.key), withResult: experimentResult)
}, refreshHandler: { cacheRefreshed in
currentValueSubject.send(cacheRefreshed) // mapped to `growthBookRefreshed`
}
).initializer()
}
We’ve noticed that there are a lot more Experiment Joined
events sent to mixpanel for the two variants in this experiment than for the baseline (per unique user). We’d expect that because the code will be hit more often for users who are not in the baseline. Could that be related to the issues you mentioned?