Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scriptURL is not taken in consideration #200

Open
calbazasebastian opened this issue Mar 9, 2018 · 1 comment
Open

scriptURL is not taken in consideration #200

calbazasebastian opened this issue Mar 9, 2018 · 1 comment

Comments

@calbazasebastian
Copy link

calbazasebastian commented Mar 9, 2018

If I'm not missing something the scriptURL from the options needs to be added also
See https://github.com/nuxt-community/modules/blob/8b451c1ae956ce04be6eb8a95bc98b29bc4a961b/packages/google-tag-manager/index.js#L7

This question is available on Nuxt.js community (#c118)
@uto-usui
Copy link

I am the same.

  let currentOptions = {
    id: options.id || null,
    layer: options.layer || 'dataLayer',
    env: {
      gtm_auth: options.env && options.env.gtm_auth || null,
      gtm_preview: options.env && options.env.gtm_preview || null,
      gtm_cookies_win: options.env && options.env.gtm_cookies_win || 'x'
    },
    scriptURL: options.scriptURL || null
  }

☝️ In this way we need to pass scriptURL to currentOptions.

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

No branches or pull requests

2 participants