Skip to content

Commit

Permalink
Merge pull request #44 from bertamatu/update-analytics
Browse files Browse the repository at this point in the history
update analytics
  • Loading branch information
bertamatu authored Jun 29, 2023
2 parents 6844ac8 + 7d98de7 commit d140c4a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 40 deletions.
15 changes: 8 additions & 7 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ module.exports = {
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GATSBY_G_A,
head: true,
anonymize: true,
respectDNT: true,
pageTransitionDelay: 0,
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GATSBY_GA4
],
pluginConfig: {
head: true,
},
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-catch-links`,
Expand Down
52 changes: 20 additions & 32 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 @@ -16,8 +16,8 @@
"gatsby-background-image": "^1.6.0",
"gatsby-image": "^3.11.0",
"gatsby-plugin-catch-links": "^5.7.0",
"gatsby-plugin-google-analytics": "^5.3.0",
"gatsby-plugin-google-fonts": "^1.0.1",
"gatsby-plugin-google-gtag": "^5.11.0",
"gatsby-plugin-image": "^3.7.0",
"gatsby-plugin-manifest": "^5.7.0",
"gatsby-plugin-offline": "^4.14.0",
Expand Down

0 comments on commit d140c4a

Please sign in to comment.