Skip to content
New issue

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

Gtag logs events in Console, but nothing gets fired in Network #51

Open
adhamfarrag opened this issue Feb 22, 2022 · 1 comment
Open

Comments

@adhamfarrag
Copy link

Hi. Using this module, events get fired and logged but zero calls in Network. Am I doing something wrong ?

   // Method
    google() {
      this.$gtag("config", "UA-XXXXXXX", {
        user_id: this.userAnalyticsID,
      });

      this.$gtag("event", "your_event", {
        event_category: "welcome_video",
        event_label: "[play icon]",
      });
    },
// Nuxt Config
  "google-gtag": {
    id: "UA-XXXXXXX"
    config: {
      anonymize_ip: true,
      send_page_view: true,
      linker: {
        domains: ["baseUrl"],
      },
    },
    debug: true,
    disableAutoPageTrack: false,
  },

These are logs after I fired events

Screen Shot 2022-02-22 at 11 07 47 PM

@riddla
Copy link

riddla commented Jan 26, 2023

You are probably on localhost respectively on your dev environment via npm run dev?
This module does not track in dev mode by default. You need to explicitly set the debug option, see per default..

In dev mode the module falls back to console logging, as seen in your screenshot above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants