Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: How to set tracking cookie expiration?

$
0
0
Quote
matt
You can customize these via JS tracker:


setVisitorCookieTimeout( seconds ) - the default is 2 years
setSessionCookieTimeout( seconds ) - the default is 30 minutes
setReferralCookieTimeout( seconds ) - the default is 6 months


see bottom of [piwik.org]

I used this for years with the "old" tracking code and it works fine. But how/where I have to do it in the new JS Tracker?

I've tried with

_paq.push(["setVisitorCookieTimeout", "604800"]);

but it doesn't work.

Viewing all articles
Browse latest Browse all 13117

Trending Articles