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_INFURA_PROJECT_ID="xxx"
|
||||||
#GATSBY_MARKET_FEE_ADDRESS="0xxx"
|
#GATSBY_MARKET_FEE_ADDRESS="0xxx"
|
||||||
|
#GATSBY_ANALYTICS_ID="xxx"
|
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -19,6 +19,7 @@ const query = graphql`
|
|||||||
network
|
network
|
||||||
marketFeeAddress
|
marketFeeAddress
|
||||||
currencies
|
currencies
|
||||||
|
analyticsId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user