Skip to content

Commit

Permalink
fix(google analytics): don't set user cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Mar 26, 2021
1 parent d70b456 commit 8d90bb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ if (!!window.ethereum) {

const GOOGLE_ANALYTICS_ID: string | undefined = 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({
customBrowserType: !isMobile ? 'desktop' : 'web3' in window || 'ethereum' in window ? 'mobileWeb3' : 'mobileRegular'
})
Expand Down

0 comments on commit 8d90bb7

Please sign in to comment.