nuxt-community/google-optimize-module

Use with google-tag-manager

wolganens opened this issue · 2 comments

Hi, congrats for the job with the module. I'm trying to use it with the google-tag-manager module also made by the nuxt-community. My google tag manager already has a tag for google optimize. In my nuxt.config.js the modules look like:
['@nuxtjs/google-tag-manager', { id: 'GTM-XXXXXX', layer: 'dataLayer' }], 'nuxt-google-optimize',
And the google tag assinstant look like the image:
google_optimize

With that configuration, I put a console.log in a component to see if I have access to the $exp object: if (this.$exp) { console.log(this.$exp) return this.$exp.$classes.join(" ") }

I have configured the experiment files too and created the experiment and so on... but it does not log the $exp object. Thank you again and sorry about the English thing (not my native language).

@pi0 Could this somehow be related to #13 ?

This #43 PR will add support to use GTM