@nuxtjs/google-gtag
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.0.3"></a> | ||
## [0.0.3](https://github.com/https://github.com/nuxt-community/google-gtag/compare/v0.0.2...v0.0.3) (2018-05-11) | ||
<a name="0.0.2"></a> | ||
@@ -7,0 +12,0 @@ ## [0.0.2](https://github.com/https://github.com/nuxt-community/google-gtag/compare/v0.0.1...v0.0.2) (2018-05-11) |
{ | ||
"name": "@nuxtjs/google-gtag", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Google GTag for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -9,3 +9,3 @@ # @nuxtjs/google-gtag | ||
> Google GTag for Nuxt.js | ||
> Google official gtagjs for Nuxt.js | ||
@@ -16,4 +16,6 @@ [📖 **Release Notes**](./CHANGELOG.md) | ||
The module features | ||
The module includes Google `googletagmanager.com/gtag/js` into your project and enables it with config you pass in as options. | ||
* Check the official reference [gtag](https://developers.google.com/analytics/devguides/collection/gtagjs/) | ||
## Setup | ||
@@ -42,4 +44,5 @@ - Add `@nuxtjs/google-gtag` dependency using yarn or npm to your project | ||
'google-gtag':{ | ||
id: 'UA-XXXX-XX', | ||
id: 'UA-XXXX-XX', // required | ||
options:{ | ||
// this are the config options for `gtag | ||
// check out official docs: https://developers.google.com/analytics/devguides/collection/gtagjs/ | ||
@@ -59,4 +62,12 @@ anonymize_ip: true, // anonymize IP | ||
Module Description | ||
This module inlcudes Google gtag in your NuxtJs project and enables every page tracking by default. You can use gtag inside of your components/functions/methods like follow: | ||
``` | ||
this.$gtag('event', 'your_event', { /* track something awesome */}) | ||
``` | ||
## Check functionalities | ||
Install [`Google Tag Assistant`](https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en) and see if your page is being tracked. | ||
## Development | ||
@@ -63,0 +74,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6960
80