@@ -11,21 +11,31 @@ module.exports = {
1111 } ,
1212 plugins : [
1313 {
14- resolve : `gatsby-plugin-google-gtag ` ,
14+ resolve : `gatsby-plugin-google-analytics ` ,
1515 options : {
16- trackingIds : [
17- 'G-Y3E7H5MDX8' ,
18- 'AW-17511540130'
19- ] ,
20- gtagConfig : {
21- anonymize_ip : true ,
22- } ,
23- pluginConfig : {
24- head : false ,
25- respectDNT : true ,
26- delayOnRouteUpdate : 0 ,
27- exclude : [ '/preview/**' , '/do-not-track/**' ] ,
28- } ,
16+ trackingId : "UA-151665102-1" ,
17+ // Defines where to place the tracking script - `true` in the head and `false` in the body
18+ head : false ,
19+ // Setting this parameter is optional
20+ anonymize : true ,
21+ // Setting this parameter is also optional
22+ respectDNT : true ,
23+ // Avoids sending pageview hits from custom paths
24+ exclude : [ "/do-not-track/example/" ] ,
25+ // Delays sending pageview hits on route update (in milliseconds)
26+ pageTransitionDelay : 0 ,
27+ defer : true ,
28+ enableWebVitalsTracking : true ,
29+ // Enables Google Optimize using your container Id
30+ // optimizeId: "YOUR_GOOGLE_OPTIMIZE_TRACKING_ID",
31+ // Enables Google Optimize Experiment ID
32+ // experimentId: "YOUR_GOOGLE_EXPERIMENT_ID",
33+ // Set Variation ID. 0 for original 1,2,3....
34+ // variationId: "YOUR_GOOGLE_OPTIMIZE_VARIATION_ID",
35+ // Any additional optional fields
36+ // sampleRate: 5,
37+ // siteSpeedSampleRate: 10,
38+ // cookieDomain: "example.com",
2939 } ,
3040 } ,
3141 'gatsby-plugin-react-helmet' ,
@@ -100,20 +110,26 @@ module.exports = {
100110 } ,
101111 } ,
102112 {
103- resolve : 'gatsby-plugin-webpack-bundle-analyser-v2 ' ,
113+ resolve : 'gatsby-plugin-google-tagmanager ' ,
104114 options : {
105- analyzerMode : 'static' ,
106- reportFilename : 'bundle-report.html' ,
107- openAnalyzer : false ,
108- disable : ! process . env . ANALYZE_BUNDLE ,
115+ id : 'AW-17511540130' ,
116+ // Optional: Include in development environment
117+ includeInDevelopment : false ,
118+ // Optional: Default data layer values
119+ defaultDataLayer : { platform : 'gatsby' } ,
120+ // Optional: Respect Do Not Track (DNT) browser setting
121+ respectDNT : true ,
122+ // Optional: Exclude certain paths from tracking
123+ exclude : [ '/preview/**' , '/do-not-track/' ] ,
124+ // Optional: Delay pageview event on route updates (e.g., for page transitions)
125+ delayOnRouteUpdate : 0 ,
109126 } ,
110127 } ,
111128 {
112129 resolve : 'gatsby-plugin-purgecss' , // purges all unused/unreferenced css rules
113130 options : {
114131 develop : true , // Activates purging in npm run develop
115132 purgeOnly : [ '/all.sass' ] , // applies purging only on the bulma css file
116- printRejected : true ,
117133 } ,
118134 } , // must be after other CSS plugins
119135 'gatsby-plugin-netlify' , // make sure to keep it last in the array
0 commit comments