nuxt-community / google-optimize-module

SSR friendly Google Optimize module for Nuxt.js
MIT License
215 stars 32 forks source link

Run multiple experiments simultaneously #22

Closed yaelp2 closed 4 years ago

yaelp2 commented 4 years ago

Is it possible to run multiple experiments simultaneously? As I see in the source code, if I create multiple experiments it randomly chooses only one based on the experiments weight. Is there a way to run 2 experiments at the same time? i.e $exp will contain array of experiments where each experiment contains its active variant

Thanks in advanced, Yael, Full-Stack Developer

farzadso commented 4 years ago

@yaelp2 Right now the module only allows running on experiment as it stores the initially elected experiment in the cookie. We do plan on making it support multiple experiments at the same time but there are a few caveats, e.g. running two experiments in the same page is kind of weird if they have the same effect. PRs are welcome.