nuxt-community / google-gtag-module

Enable google gtagjs for NuxtJs
MIT License
145 stars 29 forks source link

A lot of "(not set)" errors #34

Open PipocaZalas opened 4 years ago

PipocaZalas commented 4 years ago

Hello everyone, lately I have been reciving a lot of errors from google analitycs about "(not set)" pages. I am using @nuxtjs/google-gtag 1.0.4 and this is my config:

modules: [
    [
      '@nuxtjs/google-gtag',
      {
        id: process.env.GOOGLE_ANALYTICS_ID,
        config: {
          send_page_view: false // if true, double hit is sent
        }
      }
    ]
  ]

My events are simple as well

this.$gtag('event', 'play', {
    event_category: 'welcome_video',
    event_label: '[play icon]'
})

Is it a problem with nuxtjs/google-gtag library or am I wrong?

PipocaZalas commented 4 years ago

Recently I found the new repository for the library https://github.com/nuxt-community/gtm-module. Consider adding the link in the description anyway.

aphavichitr commented 3 years ago

@MackYoel is the gtm-module the replacement for google-gtag? Are you using library instead? I noticed in the gtm-module you it says to put id: GTM-XXXXXXX, what is this id? Is it the adwords ID AW-XXXXXXXXX?