You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
I am using package react-cookie-consent to display cookies footer with buttons "Accept cookies" or "Decline" what I want is to initialize cookies ReactGA.initialize("unique tracking") on button click not directly in App.tsx. When I added that functionality kind of works but on refresh I am getting warning all the time: [react-ga] ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually. I don't want to initialize cookies straight away, only when user clicks Accept cookies button. Is there a way to remove warning?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using package react-cookie-consent to display cookies footer with buttons "Accept cookies" or "Decline" what I want is to initialize cookies
ReactGA.initialize("unique tracking")
on button click not directly in App.tsx. When I added that functionality kind of works but on refresh I am getting warning all the time:[react-ga] ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually
. I don't want to initialize cookies straight away, only when user clicks Accept cookies button. Is there a way to remove warning?The text was updated successfully, but these errors were encountered: