Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Use with google-tag-manager #16

Open
wolganens opened this issue Jul 23, 2019 · 2 comments
Open

Use with google-tag-manager #16

wolganens opened this issue Jul 23, 2019 · 2 comments

Comments

@wolganens
Copy link

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).

@farzadso
Copy link
Collaborator

@pi0 Could this somehow be related to #13 ?

@eljass
Copy link

eljass commented Feb 2, 2021

This #43 PR will add support to use GTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants