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

Package Sidebar

Install

npm i gatsby-plugin-google-analytics-gtag

Weekly Downloads

28

Version

0.0.13

License

Apache-2.0

Unpacked Size

22.7 kB

Total Files

7

Last publish

Collaborators

  • manusa