diff --git a/app.config.js b/app.config.js index 6704d1333..98955ed6e 100644 --- a/app.config.js +++ b/app.config.js @@ -32,8 +32,5 @@ module.exports = { classNameDark: 'dark', classNameLight: 'light', storageKey: 'oceanDarkMode' - }, - - // Analytics - analyticsId: process.env.GATSBY_ANALYTICS_ID || 'xxx' + } } diff --git a/gatsby-config.js b/gatsby-config.js index 62f419d40..774268880 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -67,22 +67,6 @@ module.exports = { } }, 'gatsby-plugin-webpack-size', - { - resolve: 'gatsby-plugin-google-analytics', - options: { - // The property ID; the tracking code won't be generated without it - trackingId: appConfig.analyticsId, - // 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' - } - }, { resolve: 'gatsby-plugin-use-dark-mode', options: { diff --git a/package-lock.json b/package-lock.json index d3d6f764d..96617e519 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19451,25 +19451,6 @@ } } }, - "gatsby-plugin-google-analytics": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.9.0.tgz", - "integrity": "sha512-Zgiwn4GSJDyO0145pbpP8Ri0guAqCbJOPOxDH+jONasxVrSnEP6KCGDshxi0Cl31DkfebpVpTs+0MDRKvhQ/Qw==", - "requires": { - "@babel/runtime": "^7.12.5", - "minimatch": "3.0.4" - }, - "dependencies": { - "@babel/runtime": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz", - "integrity": "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - } - } - }, "gatsby-plugin-manifest": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.10.0.tgz", diff --git a/package.json b/package.json index 77077515f..97513381c 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "formik": "^2.2.6", "gatsby": "^2.30.2", "gatsby-image": "^2.9.0", - "gatsby-plugin-google-analytics": "^2.9.0", "gatsby-plugin-manifest": "^2.10.0", "gatsby-plugin-react-helmet": "^3.8.0", "gatsby-plugin-remove-trailing-slashes": "^2.8.0", diff --git a/src/hooks/useSiteMetadata.ts b/src/hooks/useSiteMetadata.ts index 6f51fa8fe..4aa5fb6fc 100644 --- a/src/hooks/useSiteMetadata.ts +++ b/src/hooks/useSiteMetadata.ts @@ -19,7 +19,6 @@ const query = graphql` network marketFeeAddress currencies - analyticsId } } }