nuxt-community / google-optimize-module

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

Just for SSR? #40

Closed hecktarzuli closed 4 years ago

hecktarzuli commented 4 years ago

I'm just confirming, this module is only for target: server, mode: universal (SSR) correct?

Any other way doesn't seem to make sense.

@pi0 @farzadso

farzadso commented 4 years ago

@hecktarzuli That was our initial plan.

Why doesn't it make sense for SPAs? Can't SPAs use Google Optimize?

hecktarzuli commented 4 years ago

My perception was this module was for server side rendering and server side experiments.

Yes SPAs can use GO, but it would make more sense for them to use GO's client side library and WYSIWUG editor as the first payload wouldn't be guaranteed to be the right DOM anyway. (which would negate this whole module)

Thanks for the insight @farzadso !

farzadso commented 4 years ago

That's true @hecktarzuli

I couldn't agree with you any more.

hecktarzuli commented 4 years ago

Since this was designed to work with both, I'll make sure to continue supporting that with my upcoming tweaks.