Skip to content

Commit

Permalink
Revert "fix: google analytics"
Browse files Browse the repository at this point in the history
This reverts commit a3f01c9.
  • Loading branch information
mojtabaahn committed Apr 22, 2024
1 parent a3f01c9 commit d7e5caf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
21 changes: 8 additions & 13 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ module.exports = {
siteUrl: `http://localhost:8000`
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "G-BTDS6S0YG7",
head: true,
anonymize: true,
},
},
'gatsby-plugin-postcss',
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
Expand Down Expand Up @@ -53,18 +61,5 @@ module.exports = {
resolve: "gatsby-transformer-remark",
options: {}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: ["G-BTDS6S0YG7"],
gtagConfig: {
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: true,
},
},
},
]
};
18 changes: 0 additions & 18 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"gatsby": "^4.8.2",
"gatsby-omni-font-loader": "^2.0.2",
"gatsby-plugin-google-analytics": "^4.25.0",
"gatsby-plugin-google-gtag": "^5.13.1",
"gatsby-plugin-image": "^2.25.0",
"gatsby-plugin-mdx": "^3.15.0",
"gatsby-plugin-mdx-frontmatter": "^0.0.4",
Expand Down

0 comments on commit d7e5caf

Please sign in to comment.