Open mogmet opened 3 years ago
If anyone wants a valid (for now) TS solution:
Add a google-gtag.d.ts
file with the following content:
import Vue from 'vue';
declare module 'vue/types/vue' {
interface Vue {
$gtag: Function;
}
}
You can now use this.$gtag
in your vue components.
Hi! I want to use google-gtag in the Nuxt(with vuex-module-decorators) + Typescript.
I read #8 issue. But I can't understand how to use.
Please tell me how to use google-gtag with Typescript.