Closed lajoskvcs closed 4 years ago
Hi!
When the GTMPlugin starts with enabled: false and you call this.$gtm.enable(true), then it will throw an error!
enabled: false
this.$gtm.enable(true)
Cannot read property 'defer' of undefined
In the enable method the loadScript does not get a config Object.
Hi! I made a PR for a resolution: https://github.com/mib200/vue-gtm/pull/91
Hi!
When the GTMPlugin starts with
enabled: false
and you callthis.$gtm.enable(true)
, then it will throw an error!The error:
The solution:
In the enable method the loadScript does not get a config Object.