Hold tight! This is currently under development.
(If you're keen you can get the latest beta version here)
Andy AB
Behold, an AB testing framework for static sites without any frills.
here
See it in actionExample
£20 It's expensive, but so are you!
FAQ
How many cohorts can I have?
How many can you shake a stick at? (as many as you like).
Can I run redirect experiments?
Sure can. Try this out:
test;
Can I exclude some users from experiments?
Yes!
test
or you can pass in an exclusions object if that's more your thing:
var exclusions = { ... } { ... };test;
Now that the exclusions are set, the user will either be enrolled into the first
exclusion cohort whose function returns true
, or (if none of them return true
) a random cohort
from the cohorts array.
In your example you're including JS in the HEAD section, isn't that bad?
This could slow down the time it takes your page to load. However, it was a conscious decision since it will prevent the page from flickering.
This is because the testing framework listens to the DOM as it loads and executes callbacks before the elements are rendered on the page. This prevents a flicker occuring on the page when elements are updated. For example, say you were running an experiment where users in the control cohort saw a green button, and users in the treatment cohort saw a blue button. You'd say something like:
test;
If the script was at the bottom of the page, then the green control button would be rendered first, then the script would execute where the background colour would be set to blue. This would sometimes be noticable and potentially affect your experiment results.
Try it out
brew install node
npm install -g grunt-cli
npm install
grunt http-server
How to maintain it
- Fork the repo
- Create a branch
git checkout -b my-cool-branch
- Run
npm install
- Cut code ✨
- Build it and run the tests
grunt
- Create a Pull Request