-
- The ReactTracker is
active
whengetCookieConsentValue()
from react-cookie-consent returns 'true' - Configured
ObjectivProvider
to not track ApplicationLoaded event via its options
- The ReactTracker is
-
- Added a new
CookieBanner
component to the JSX output
- Added a new
-
- This component is a wrapper around the
CookieConsent
component from react-cookie-consent - We get the tracker instance via the
useTracker
hook - And create a
trackApplicationLoadedEvent
callback using theuseApplicationLoadedEventTracker
hook - Finally we pass a custom
onAccept
handler to theCookieConsent
component, to invokesetActive(boolean)
of the tracker and trigger theApplicationLoadedEvent
.
- This component is a wrapper around the