@@ -11,31 +11,21 @@ module.exports = {
1111 } ,
1212 plugins : [
1313 {
14- resolve : `gatsby-plugin-google-analytics ` ,
14+ resolve : `gatsby-plugin-google-gtag ` ,
1515 options : {
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",
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+ } ,
3929 } ,
4030 } ,
4131 'gatsby-plugin-react-helmet' ,
@@ -110,26 +100,20 @@ module.exports = {
110100 } ,
111101 } ,
112102 {
113- resolve : 'gatsby-plugin-google-tagmanager ' ,
103+ resolve : 'gatsby-plugin-webpack-bundle-analyser-v2 ' ,
114104 options : {
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 ,
105+ analyzerMode : 'static' ,
106+ reportFilename : 'bundle-report.html' ,
107+ openAnalyzer : false ,
108+ disable : ! process . env . ANALYZE_BUNDLE ,
126109 } ,
127110 } ,
128111 {
129112 resolve : 'gatsby-plugin-purgecss' , // purges all unused/unreferenced css rules
130113 options : {
131114 develop : true , // Activates purging in npm run develop
132115 purgeOnly : [ '/all.sass' ] , // applies purging only on the bulma css file
116+ printRejected : true ,
133117 } ,
134118 } , // must be after other CSS plugins
135119 'gatsby-plugin-netlify' , // make sure to keep it last in the array
0 commit comments