nuxt-community / google-optimize-module

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

fix(plugin): fix fetch experiment ID from cookie #11

Closed williamchong closed 5 years ago

williamchong commented 5 years ago

Current the code bugs out when invalid entries without . is in the cookie, so I added checking for cookieVars cookieExp should be used instead of cookie[0], which the latter is just 1 char instead of the whole experiment ID string.

farzadso commented 5 years ago

@pi0 Would you please review these changes?

farzadso commented 5 years ago

LGTM2