Created
March 15, 2021 13:06
-
-
Save 2018kguo/22b626e7f108cb25f75fbaaf1acb0c5a to your computer and use it in GitHub Desktop.
gtag plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: [ | |
{ | |
resolve: `gatsby-plugin-gtag`, | |
options: { | |
// your google analytics tracking id | |
trackingId: process.env.GOOGLE_ANALYTICS_ID, | |
// Puts tracking script in the head instead of the body | |
head: false, | |
// enable ip anonymization | |
anonymize: true, | |
}, | |
}, | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment