vue-gtag-next icon indicating copy to clipboard operation
vue-gtag-next copied to clipboard

Not showing up on Google Analytics

Open tvchurch opened this issue 4 years ago • 1 comments

Wonder if I'm not adding this correctly. My main.js file (Account ID number has been changed):

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VueGtag from "vue-gtag-next";

createApp(App)
  .use(store)
  .use(router)
  .use(VueGtag, {
    property: {
      id: "287664219",
    },
  })
  .mount("#app");

In "@/router/index.js" I have this:

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

trackRouter(router);

Shouldn't that work?

tvchurch avatar Apr 19 '21 23:04 tvchurch

it looks good to me. could you create a small vue3 app to show me how you implement it? thanks

MatteoGabriele avatar Apr 21 '21 21:04 MatteoGabriele