mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 12:07:09 +00:00
Fix load ga. (#1998)
This commit is contained in:
parent
5361aec9ee
commit
b12e1906f5
@ -129,6 +129,10 @@ const CookiesBanner = (): ReactElement => {
|
||||
}
|
||||
setLocalAnalytics(acceptedAnalytics)
|
||||
setLocalNecessary(acceptedNecessary)
|
||||
|
||||
if (acceptedAnalytics && !isDesktop) {
|
||||
loadGoogleAnalytics()
|
||||
}
|
||||
}
|
||||
}
|
||||
fetchCookiesFromStorage()
|
||||
@ -162,10 +166,6 @@ const CookiesBanner = (): ReactElement => {
|
||||
dispatch.current(openCookieBanner({ cookieBannerOpen: false }))
|
||||
}
|
||||
|
||||
if (showAnalytics && !isDesktop) {
|
||||
loadGoogleAnalytics()
|
||||
}
|
||||
|
||||
if (showIntercom) {
|
||||
loadIntercom()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user