1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

add gatsby-plugin-google-analytics

This commit is contained in:
Matthias Kretschmann 2020-10-27 10:24:24 +01:00
parent cadb8228e1
commit a467bffeb8
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 27 additions and 1 deletions

View File

@ -66,6 +66,22 @@ module.exports = {
cache_busting_mode: 'none'
}
},
'gatsby-plugin-webpack-size'
'gatsby-plugin-webpack-size',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'UA-60614729-11',
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Defers execution of google analytics script after page load
defer: true,
cookieDomain: 'oceanprotocol.com'
}
}
]
}

9
package-lock.json generated
View File

@ -17920,6 +17920,15 @@
"micromatch": "^4.0.2"
}
},
"gatsby-plugin-google-analytics": {
"version": "2.3.19",
"resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.3.19.tgz",
"integrity": "sha512-U8HVZU3y/LoaD2UEU5h7YNsPfdJcRF11byGtiM6xE7hYqWr2YFVaKMf6L/AiREPtgaoE+YB2XfbfDrk2wUtEUA==",
"requires": {
"@babel/runtime": "^7.11.2",
"minimatch": "3.0.4"
}
},
"gatsby-plugin-manifest": {
"version": "2.4.35",
"resolved": "https://registry.npmjs.org/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.4.35.tgz",

View File

@ -42,6 +42,7 @@
"formik": "^2.2.0",
"gatsby": "^2.24.85",
"gatsby-image": "^2.4.21",
"gatsby-plugin-google-analytics": "^2.3.19",
"gatsby-plugin-manifest": "^2.4.35",
"gatsby-plugin-react-helmet": "^3.3.14",
"gatsby-plugin-remove-trailing-slashes": "^2.3.13",