Hooks / nab_gdpr_cookie

apply_filters( 'nab_gdpr_cookie', boolean|string $gdpr_cookie )

Filters the name of the cookie that monitors GDPR acceptance.


According to EU regulations and, in particular, the GDPR, visitors should be able to decide whether they want to be tracked by your website or not. If you need to comply to the GDPR, you can use this setting to specify the name of the cookie that must exist for tracking that visitor.

By default, this setting is set to false, which means that all users will be tracked regardless of any other cookies.



(boolean|string) (Required) the name of the cookie that should exist if GDPR has been accepted and, therefore, tracking is allowed. Default: false.


File: public/helpers/class-nelio-ab-testing-runtime.php


Version Description
5.0.0 Introduced.