gatsby-plugin-google-analytics-gtag

0.0.13 • Public • Published

gatsby-plugin-google-analytics-gtag

npm

Gatsby plugin to add Google Analytics support to your site leveraging Google's gtag.js library.

The main difference with the official Gatsby plugins is that this one doesn't use cookies to track visitors.

Usage

plugins: [
  {
    resolve: 'gatsby-plugin-google-analytics-gtag',
    options: {
      trackingId: 'UA-YOURIDHERE-1',
      enableSessionStorage: true,
      consentMode: 'granted'
    }
  },
]
Option Description Values
constentMode Allows to specify the default consent options denied or granted

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.133latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.133
0.0.120
0.0.110
0.0.100
0.0.928
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i gatsby-plugin-google-analytics-gtag

Weekly Downloads

31

Version

0.0.13

License

Apache-2.0

Unpacked Size

22.7 kB

Total Files

7

Last publish

Collaborators

  • manusa