Palmabit-IT / react-cookie-law

React Cookie Law is a cookie-info banner compliance with the GDPR and the EU cookie law. It allows the user to give consent in a granular way.
115 stars 55 forks source link

Doubt: What does react-cookie-law really make? #23

Open anialamo opened 4 years ago

anialamo commented 4 years ago

Hi, I have a doubt. What does react-cookie-law really make? I see this library creates 3 or 4 cookies for my web. But I need to implement to load/unload scripts for statistics cookies? like Google Analytics? or this library already does everything for my web, that is, it actually enables / disables the cookies of the actived / deactivated categories ?

A lot of thanks!

asarzina commented 4 years ago

Hi, react-cookie-law has some callbacks to enable scripts like Google Analytics when a user accept the preferences. There are three checkboxes: preferences, statistics and marketing. For the library they are equivalent, but they are userful for users to enable different scripts.