Skip to content

Commit

Permalink
gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashitha committed Aug 12, 2023
1 parent 4dd04ea commit 2d2a769
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
8 changes: 5 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ module.exports = {
`gatsby-plugin-postcss`,
`gatsby-plugin-feed`,
{
resolve: `gatsby-plugin-google-analytics`,
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingId: `G-LN4FPSXMDH`, // Optional Google Analytics
},
trackingIds: [
"G-LN4FPSXMDH",
]
}
},
{
resolve: `gatsby-plugin-manifest`,
Expand Down
35 changes: 29 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gatsby": "^2.24.67",
"gatsby-image": "^2.4.20",
"gatsby-plugin-feed": "^2.5.14",
"gatsby-plugin-google-analytics": "^2.3.18",
"gatsby-plugin-google-gtag": "^5.11.0",
"gatsby-plugin-manifest": "^2.4.33",
"gatsby-plugin-offline": "^3.2.30",
"gatsby-plugin-postcss": "^3.0.1",
Expand Down

0 comments on commit 2d2a769

Please sign in to comment.