vue-gtag | Global Site Tag plugin for Vue (gtagjs) | Analytics library

 by   MatteoGabriele JavaScript Version: 2.0.2-beta.0 License: MIT

kandi X-RAY | vue-gtag Summary

kandi X-RAY | vue-gtag Summary

vue-gtag is a JavaScript library typically used in Analytics, Vue, React applications. vue-gtag has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i vue-gtag' or download it from GitHub, npm.

HEADS UP! This is version 2 branch and it requires Vue 3. If you are looking for a Vue 2 compatible version, use version 1. You can find both documentations here.

            kandi-support Support

              vue-gtag has a low active ecosystem.
              It has 762 star(s) with 59 fork(s). There are 6 watchers for this library.
              It had no major release in the last 12 months.
              There are 18 open issues and 177 have been closed. On average issues are closed in 155 days. There are 15 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of vue-gtag is 2.0.2-beta.0

            kandi-Quality Quality

              vue-gtag has 0 bugs and 0 code smells.

            kandi-Security Security

              vue-gtag has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vue-gtag code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vue-gtag is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              vue-gtag releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-gtag
            Get all kandi verified functions for this library.

            vue-gtag Key Features

            No Key Features are available at this moment for vue-gtag.

            vue-gtag Examples and Code Snippets

            No Code Snippets are available at this moment for vue-gtag.

            Community Discussions


            Use the Google Analytics Script in NUXT project
            Asked 2021-Feb-18 at 22:00

            I have a website with Nuxt and I want to put the Google Analytics Script on it.

            I have downloaded the vue-gtag module



            Answered 2021-Feb-18 at 22:00

            EDIT: here is a detailed post on how to configure it >>

            If you're using Nuxt, you should rather use the @nuxtjs/google-analytics plug-in directly:

            It will handle some edge cases related to SSR for you and is on top of that, super easy to configure.



            Vuex 4, State is empty in component
            Asked 2021-Feb-09 at 11:28

            I am trying to access subjects store state using this.$store.state.subjects inside my home component however it comes up as an empty array. Using console.log the only place I am able to see the state.subjects populated is if its in the mutation function. Anywhere else the console.log is empty. It seems to me that the state is not persisting from the mutations, but I'm not sure why.

            I have tried quite a few stackoverflow answers however, non of them fix the issues or I have no clue what I am reading in the post. I have also left of code from my code blocks to make this post more readable, such as imports or templates.

            Store index.js



            Answered 2021-Feb-09 at 09:43

            In the component, you're copying the value of this.$store.state.subjects before the axios call has completed. Wait for the promise to resolve first. To do that, you'll need to first return the promise from the action:



            ERROR TypeError: Cannot read property 'style-resources-loader' of undefined
            Asked 2020-Dec-12 at 12:34

            I have a project with Vue 2.6, in which this error occurs at some stage of the style assembly (if I understand correctly). At the same time, I can neither build nor run the project, but all modules are successfully installed from the package.json


            ERROR TypeError: Cannot read property 'style-resources-loader' of undefined

            Full detail:



            Answered 2020-Dec-12 at 12:31

            style-resources-loader is for automatically importing certain resources. vue-cli-plugin-style-resources-loader is just a wrapper for that. There probably isn't a need for both, and that may be causing the problem. Try removing one of the following devDependencies:

            • vue-cli-plugin-style-resources-loader
            • style-resources-loader

            For example:



            How to access plugin from nuxt.js store?
            Asked 2020-Aug-16 at 23:40

            I have this gtag (analytics plugin) that I can access on my components but never on my store. I would appreciate any opinions. Thanks




            Answered 2020-Aug-16 at 20:45

            You can access the Vue instance through this._vm in the Vuex store, so you would just need to do:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install vue-gtag

            You can install using 'npm i vue-gtag' or download it from GitHub, npm.


            vue-gtag documentationgtag.js official documentation
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • npm

            npm i vue-gtag

          • CLONE
          • HTTPS


          • CLI

            gh repo clone MatteoGabriele/vue-gtag

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Analytics Libraries


            by apache


            by influxdata


            by matomo-org


            by statsd


            by grafana

            Try Top Libraries by MatteoGabriele


            by MatteoGabrieleJavaScript


            by MatteoGabrieleJavaScript


            by MatteoGabrieleJavaScript


            by MatteoGabrieleJavaScript


            by MatteoGabrieleJavaScript