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…
Reference in New Issue