segmentio/consent-manager

Setting shouldRequireConsent to false on version 5.8.1 does not track

metalvegetarianoprogresivo opened this issue · 0 comments

We found an issue with the consent-manager version 5.8.1, when setting the shouldRequireConsent prop to false, the cookies are not being store on the user's browser. According to the documentation:

Callback function that determines if consent is required before tracking begins. Set to true to show the consent banner, otherwise return false to not show consent banner and start tracking immediately.

So if set to false, the cookies should be store on the user's browser the the initialPreference data already set.

Is this a known issue or an expected behavior? Because it is making the tracking of the users difficult for countries that do not require to display the banner properly.