Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/google-gtag

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/google-gtag - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

5

CHANGELOG.md

@@ -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)

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc