Comments (2)
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 %>
from split.
Thanks @andrew - makes sense.
from split.
Related Issues (20)
- ERR wrong number of arguments for 'hset' command HOT 6
- Improved experience in the split dashbaord
- "Insufficient confidence" with 1400+ participants, 60+ completions and 2 variants HOT 2
- Multiple tests with the same prefix (e.g. menu and menu_underline) will result in the second test being recalculated at every request HOT 4
- The control group is not always the default in RSpec tests HOT 2
- custom error tracking middleware like raygun / sentry / etc? HOT 2
- Split Dashboard showing negative NON-FINISHED value HOT 1
- Error connecting to Redis with cookie config HOT 1
- When split cookie is a valid, json encoded String, a NoMethodError is raised HOT 2
- Update alternative weights dynamically
- ActionView::Template::Error (Unsupported command argument type: TrueClass) HOT 8
- Deprecation warning by using `redis.sadd` with Redis 4.8.0 HOT 5
- `matrix` should be added as a dependency
- Rubystats gem causes name conflict that won't allow Rails application to start properly HOT 1
- SSL_connect error when opening dashboard or calling ab_test() or ab_finished() since updating our Heroku redis from 5 to 7 HOT 4
- CROSSSLOT keys issue when using redis cluster HOT 5
- Assign running experiment to logged_in_user HOT 1
- Split Dashboard can take minutes to load after upgrading to Split v4.x (with RubyStats) HOT 5
- 'cleanup_old_experiments' error when running from non-web (eg. console) HOT 2
- New release with redis 4.8 compatibility ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from split.