-
- 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
sdirosa/ObjectivTrackerActivationExample
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example of how to activate ReactTracker via a callback of a Cookie Banner
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published