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

move analytics id to environment variable (#238)

This commit is contained in:
Matthias Kretschmann 2020-11-10 16:52:26 +01:00 committed by GitHub
parent a19e7bca04
commit 2190a8a9a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -3,3 +3,4 @@ GATSBY_NETWORK="rinkeby"
#GATSBY_INFURA_PROJECT_ID="xxx" #GATSBY_INFURA_PROJECT_ID="xxx"
#GATSBY_MARKET_FEE_ADDRESS="0xxx" #GATSBY_MARKET_FEE_ADDRESS="0xxx"
#GATSBY_ANALYTICS_ID="xxx"

View File

@ -32,5 +32,8 @@ module.exports = {
classNameDark: 'dark', classNameDark: 'dark',
classNameLight: 'light', classNameLight: 'light',
storageKey: 'oceanDarkMode' storageKey: 'oceanDarkMode'
} },
// Analytics
analyticsId: process.env.GATSBY_ANALYTICS_ID || 'xxx'
} }

View File

@ -71,7 +71,7 @@ module.exports = {
resolve: 'gatsby-plugin-google-analytics', resolve: 'gatsby-plugin-google-analytics',
options: { options: {
// The property ID; the tracking code won't be generated without it // The property ID; the tracking code won't be generated without it
trackingId: 'UA-60614729-11', trackingId: appConfig.analyticsId,
// Defines where to place the tracking script - `true` in the head and `false` in the body // Defines where to place the tracking script - `true` in the head and `false` in the body
head: false, head: false,
// Setting this parameter is optional // Setting this parameter is optional

View File

@ -19,6 +19,7 @@ const query = graphql`
network network
marketFeeAddress marketFeeAddress
currencies currencies
analyticsId
} }
} }
} }