We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
latest
set up module but don't set an id (happens in development)
The module only sets up with dataLayer on the window when the id has been set.
nuxt-gtag/src/runtime/plugin.client.ts
Lines 9 to 12 in d307c78
The trackEvent etc expects the window.dataLayer to be set.
nuxt-gtag/src/runtime/gtag.ts
Lines 1 to 4 in d307c78
This should not have that assertion and should have a check for the existence of the id or the dataLayer.
Am I missing something?
No response
The text was updated successfully, but these errors were encountered:
Thanks for pointing that out!
Sorry, something went wrong.
f60e47c
No branches or pull requests
Environment
latest
Reproduction
set up module but don't set an id (happens in development)
Describe the bug
The module only sets up with dataLayer on the window when the id has been set.
nuxt-gtag/src/runtime/plugin.client.ts
Lines 9 to 12 in d307c78
The trackEvent etc expects the window.dataLayer to be set.
nuxt-gtag/src/runtime/gtag.ts
Lines 1 to 4 in d307c78
This should not have that assertion and should have a check for the existence of the id or the dataLayer.
Am I missing something?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: