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

Use with google-tag-manager #16

@wolganens

Description

@wolganens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions