1. Documentation
  2. Referrals
  3. GDPR: Cookies used

GDPR: Cookies used

To meet with GDPR, you need to inform to your users about any cookie that your site uses.

Referrals add-on needs the use of a cookie to meet when a referral visitor comes into a referral sign up. So, the details of the cookie are:

Cookie name: gamipress_referrals_ref
Expiration time: 1 day

How to change the cookie expiration time?

We provide the filter gamipress_referrals_cookie_lifetime to let you change the cookie lifetime, there is a example to change it for 1 month:

function my_prefix_custom_referrals_cookie_lifetime( $lifetime, $affiliate_id, $referral_id, $affiliate ) {

    return strtotime( '+1 month' );

}
add_filter( 'gamipress_referrals_cookie_lifetime', 'my_prefix_custom_referrals_cookie_lifetime', 10, 4 );
Was this article helpful to you? Yes No

How can we help?