ANNOUNCEMENT

Gatsby is joining Netlify: Read the announcement post

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby-plugin-google-analytics-gtag

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
    }
  },
]
© 2023 Gatsby, Inc.