Dilawar Singh Being Dilawar/ Tools/

I am using Google’s global site gags (gtags) on my framework7+vue application to collect data. The gtag official documentation has an easy to use example. Anyway, I prefer vue-gtag library.

// Init google analytics
import VueGtag from "vue-gtag";
Vue.use(VueGtag, {
   config: { id: "UA-180198765-1" }

where id key in config dictionary is your tracking id.

Official documentation here https://matteo-gabriele.gitbook.io/vue-gtag/