nuxt-community / google-optimize-module

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

Support with gtag? #46

Open KingWu opened 3 years ago

KingWu commented 3 years ago

Will support with gtag?

ericgrainbridge commented 3 years ago

Internally the library depends on the old ga tag. As a workaround you can add something like:

$gtag.set("experiments", [
      { id: "Experiment id", variant: "0" }
    ]);