Setting "configVisitorCookieTimeout"


(Ahminata Sidibe) #1

how can i change the default value of the parameter “configVisitorCookieTimeout”?
best regard


(Lukas Winkler) #2

Hi,

You can use the following settings in Javascript:

  • setVisitorCookieTimeout( seconds ) - the default is 13 months
  • setReferralCookieTimeout( seconds ) - the default is 6 months
  • setSessionCookieTimeout( seconds ) - the default is 30 minutes

https://developer.matomo.org/api-reference/tracking-javascript#configuration-of-tracking-cookies