Skip to content

Commit

Permalink
fix(google analytics): anonymize IP and do not use cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Mar 30, 2021
1 parent 9df2159 commit 4dee1fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ import App from './App'
const GOOGLE_ANALYTICS_ID = process.env.REACT_APP_GOOGLE_ANALYTICS_ID

if (typeof GOOGLE_ANALYTICS_ID === 'string') {
ReactGA.initialize(GOOGLE_ANALYTICS_ID)
ReactGA.initialize(GOOGLE_ANALYTICS_ID, {
gaOptions: {
storage: 'none',
storeGac: false
}
})
ReactGA.set({
anonymizeIp: true,
customBrowserType: !isMobile
? 'desktop'
: 'web3' in window || 'ethereum' in window
Expand Down

0 comments on commit 4dee1fd

Please sign in to comment.