[Vuejs]-Vue-gtag @legacy query not returning client id

0👍

try entering this in nuxt.config.ts

{
  src: '~/plugins/main.ts',
  // if you use ssr
  ssr: true
  // if you use csr
  mode: 'client'
  // chooise one
}

source : https://www.carlcassar.com/articles/add-google-analytics-to-a-nuxt-js-app

0👍

I’m not sure if it’s possible to use the get method in vue-gtag; I think query method is not prepared for that:
https://github.com/MatteoGabriele/vue-gtag/issues/251

Leave a comment