Fix load ga. (#1998)
This commit is contained in:
parent
5361aec9ee
commit
b12e1906f5
|
@ -129,6 +129,10 @@ const CookiesBanner = (): ReactElement => {
|
||||||
}
|
}
|
||||||
setLocalAnalytics(acceptedAnalytics)
|
setLocalAnalytics(acceptedAnalytics)
|
||||||
setLocalNecessary(acceptedNecessary)
|
setLocalNecessary(acceptedNecessary)
|
||||||
|
|
||||||
|
if (acceptedAnalytics && !isDesktop) {
|
||||||
|
loadGoogleAnalytics()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fetchCookiesFromStorage()
|
fetchCookiesFromStorage()
|
||||||
|
@ -162,10 +166,6 @@ const CookiesBanner = (): ReactElement => {
|
||||||
dispatch.current(openCookieBanner({ cookieBannerOpen: false }))
|
dispatch.current(openCookieBanner({ cookieBannerOpen: false }))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showAnalytics && !isDesktop) {
|
|
||||||
loadGoogleAnalytics()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (showIntercom) {
|
if (showIntercom) {
|
||||||
loadIntercom()
|
loadIntercom()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue