setReferralCookieTimeout()

❗️

Deprecated

This method is no longer recommended. Piwik PRO no longer uses the referral cookie.

The setReferralCookieTimeout() method sets the expiration time for the referral cookie (that cookie type was removed). The default value is 6 months.

Syntax

setReferralCookieTimeout(seconds)
setReferralCookieTimeout(seconds): void
setReferralCookieTimeout(seconds): void
setReferralCookieTimeout(seconds): void
setReferralCookieTimeout(seconds): void
setReferralCookieTimeout(seconds): void
setReferralCookieTimeout(seconds): void

Parameters

Seconds (number, required)

The time (in seconds) after which the referrer cookie is removed.

Examples

To set the expiration time to 1 month (2 628 288 seconds):

_paq.push(["setReferralCookieTimeout", 2628288]);
setReferralCookieTimeout(2628288): void
setReferralCookieTimeout(2628288): void
setReferralCookieTimeout(2628288): void
setReferralCookieTimeout(2628288): void
setReferralCookieTimeout(2628288): void
setReferralCookieTimeout(2628288): void

Related methods