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:
parent
a19e7bca04
commit
2190a8a9a5
@ -3,3 +3,4 @@ GATSBY_NETWORK="rinkeby"
|
||||
|
||||
#GATSBY_INFURA_PROJECT_ID="xxx"
|
||||
#GATSBY_MARKET_FEE_ADDRESS="0xxx"
|
||||
#GATSBY_ANALYTICS_ID="xxx"
|
@ -32,5 +32,8 @@ module.exports = {
|
||||
classNameDark: 'dark',
|
||||
classNameLight: 'light',
|
||||
storageKey: 'oceanDarkMode'
|
||||
}
|
||||
},
|
||||
|
||||
// Analytics
|
||||
analyticsId: process.env.GATSBY_ANALYTICS_ID || 'xxx'
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ module.exports = {
|
||||
resolve: 'gatsby-plugin-google-analytics',
|
||||
options: {
|
||||
// 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
|
||||
head: false,
|
||||
// Setting this parameter is optional
|
||||
|
@ -19,6 +19,7 @@ const query = graphql`
|
||||
network
|
||||
marketFeeAddress
|
||||
currencies
|
||||
analyticsId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user