Skip to content

Commit 8dbfa7a

Browse files
authored
Merge pull request #25 from Nirmal-C/main
Add gtag
2 parents 78616e4 + 8eb3a13 commit 8dbfa7a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

gatsby-config.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ module.exports = {
77
},
88
plugins: [
99
{
10-
resolve: `gatsby-plugin-google-analytics`,
10+
resolve: `gatsby-plugin-gtag`,
1111
options: {
12-
trackingId: "G-F7ZGXWCK9T",
12+
trackingId: `G-F7ZGXWCK9T`,
1313
head: true,
1414
anonymize: true,
15-
respectDNT: true,
16-
pageTransitionDelay: 0,
17-
enableWebVitalsTracking: true,
1815
},
1916
},
2017
`gatsby-plugin-react-helmet`,

package-lock.json

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"gatsby": "^3.12.0",
1212
"gatsby-plugin-gatsby-cloud": "^2.11.0",
1313
"gatsby-plugin-google-analytics": "3.12.0",
14+
"gatsby-plugin-gtag": "1.0.13",
1415
"gatsby-plugin-image": "^1.12.0",
1516
"gatsby-plugin-manifest": "^3.11.0",
1617
"gatsby-plugin-material-ui": "3.0.1",

0 commit comments

Comments
 (0)