nkoehring / vue-a2b

Split Testing for Vue.js
MIT License
87 stars 13 forks source link

Remember the version for recurring visitors #26

Open juanpablob opened 2 years ago

juanpablob commented 2 years ago

Hello there! First, I'd like to thank you for this Vue Plugin, it was a bit hard to find something as simple yet functional like this! :)

I have a quesiton: Although the version is stored in local storage, if I refresh the page, the version keeps changing between A and B based on the weight / chances, but if a visitor comes to the website by the first time and the plugin was serving at the time the version B, I'd like the plugin to remember the B version, so whenever they come again, they will see the B version, not the A or Z. Is there any chance to achieve this?

The reason for doing this is that I'd like to offer to the user a specific version of a feature, let's say a WYSIWYG editor, so the version A has a toolbar for text formatting and the version B is just plain text. If one of our users comes into the app/website and starts using the version A of the editor makes sense to serve the same version and not a different one every time they come, if that makes sense?

Thank you again and looking forward to hearing from you! 🎉

✌️