nuxt-community / google-optimize-module

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

Can't Handle MVT #48

Open JSAustin opened 3 years ago

JSAustin commented 3 years ago

It doesn't look like the plugin can handle MVT with sections > 1. In the variant index selection code, it resets the weight of the current variant index to 0. In the case of a 2x2 experiment, that would mean that only 0-0, 1-0, or 0-1 experiments can be chosen. 1-1 would never be chosen because the weight for it would be reduced to zero before the second round of picks.

Additionally, it doesn't look like it can handle different numbers of variants per section. Would it be possible to get an update that can handle MVT more universally? If I'm wrong and just not seeing how to do that right, please let me know.

mdiflorio commented 2 years ago

@JSAustin, did you manage to find a work around for MVT?