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? 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
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.
The text was updated successfully, but these errors were encountered:
If anyone wants a valid (for now) TS solution:
Add a google-gtag.d.ts file with the following content:
google-gtag.d.ts
import Vue from 'vue'; declare module 'vue/types/vue' { interface Vue { $gtag: Function; } }
You can now use this.$gtag in your vue components.
this.$gtag
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: