You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experiments have the concept of versions, if you change alternatives or reset an experiment it should bump the version of the experiment, this is because the user only has the experiment name and a single alternative stored in their cookie.
With no way to expire their cookie, incrementing the version (which stores the experiment as experiment:version in the cookie) means that the user should receive a new alternative from the second version of the experiment.
I suspect that when you use km in this fashion the experiment version is never used so you only every get version 0, and the alternatives have already been set for that.
I think something like this should work for you:
<% Split::Experiment.all.each do |experiment| %>
<% km.set(experiment.key, ab_test(experiment.name, *experiment.alternative_names)) %>
<% end %>
Hello,
I have the following scenario:
Is this expected behavior? e.g should we not reuse an experiment name with new sets of variants?
(As an aside, is there a better way to record the variants into KM other than that snippet?)
Thanks,
-Jason
The text was updated successfully, but these errors were encountered: