Skip to content

Commit

Permalink
fix: google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtabaahn authored Apr 22, 2024
1 parent 623ed51 commit cdd5428
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 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,24 +61,5 @@ module.exports = {
resolve: "gatsby-transformer-remark",
options: {}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "G-BTDS6S0YG7",
head: false,
anonymize: false,
respectDNT: false,
exclude: [],
pageTransitionDelay: 0,
// optimizeId: "",
// experimentId: "",
// variationId: "",
// defer: false,
// sampleRate: 5,
// siteSpeedSampleRate: 10,
// cookieDomain: "mojtabaahn.github.io",
// enableWebVitalsTracking: true,
},
},
]
};
};

0 comments on commit cdd5428

Please sign in to comment.