Google Tag Manager module break clicking on elements when id not set

aldarund
998
aldarund
commented 2 years ago

Version

2.0.0

Reproduction link

-

Steps to reproduce

When id for GTM undefined/not it break whole app. Specifically click events not working for vuetify buttons.
And there a error in console

[nuxt] Error while initializing app Error: [vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID
    at U (vendors.app.js:22408)
    at R (vendors.app.js:22408)
    at Function.Vue.use (commons.app.js:13930)
    at _callee$ (app.js:3663)
    at tryCatch (commons.app.js:4344)
    at Generator.invoke [as _invoke] (commons.app.js:4582)
    at Generator.prototype.(anonymous function) [as next] (http://localhost:3000/_nuxt/commons.app.js:4396:21)
    at asyncGeneratorStep (commons.app.js:46)
    at _next (commons.app.js:68)
    at commons.app.js:75

I dont really need GTM during E2E tests, and neither want to launch them in dev mode.

What is expected ?

warning in console at most

What is actually happening?

error in console and click

bug
0
aldarund
998
aldarund
commented 2 years ago

mistaken, its nuxt google analytics problem

0
Informations
Bug Report โ€ข Open
#c135 - Created 2 years ago