google-optimize-module icon indicating copy to clipboard operation
google-optimize-module copied to clipboard

feat: ability to disable ga emit on load + expose optimize token

Open hecktarzuli opened this issue 4 years ago • 2 comments

hecktarzuli avatar Jul 22 '20 15:07 hecktarzuli

I'm also toying with the idea of revamping the MVT support. Currently it's just 'sections:#' and weights but in practice I would find it very hard to code an experiment against a variant index and an intVal vs a named obj with values. For example.

As a user, I'd prefer something like this

if($exp.$activeVariants.buttonColor == 'red') .. if($exp.$activeVariants.headerText == 'excited') ..

vs

An array of variant objects ($exp.$activeVariants) [ {weight: 25 }, { weight: 25}, {weight: 25 }, { weight: 25}]..

This idea is pretty new and not totally flushed out, but if we do decide to go in this direction, then we'd want a new major version for sure.

@pi0

hecktarzuli avatar Aug 19 '20 15:08 hecktarzuli

Nice idea @hecktarzuli. Just created https://github.com/nuxt-community/google-optimize-module/issues/38 based on your suggestion. Maybe we can do it via a non-breaking change too as part of $exp interface improvements. (it was 3 years ago so not much perfect)

pi0 avatar Aug 25 '20 16:08 pi0