Tracking code - cookie expiration

Hi there,

due to local law, I have to change the cookie experiation date. I want to set it to 14 days.

Would adding these 2 lines of code (setVisitorCookieTimeout(‘1209600’);
setSessionCookieTimeout(‘0’):wink: at this point (see below) be correct?

<!-- Piwik -->
<script type="text/javascript"> 
  var _paq = _paq || [];
  (function() {
    var u=(("https:" == document.location.protocol) 

? "https" : "http") + 

    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), 


    g.defer=true; g.async=true; g.src=u+'piwik.js'; 



idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Code -->

Any help would be greatly appreciated as I am not a coder/programmer but still want a great open source statistics programme like piwik instead of corporate google analytics :slight_smile:

noone? any help would be really great… i don’t really know how/where to put in this cookie expiration line… unfortunately I am no tech expert but my manager wants me to do this anyway…

and yeah there are topics about cookie expiration, but none of them answers my question… i used the search extensively already, also google… there are many information about the additional lines to put into the tracking code, but there is no information about WHERE to put the additional lines inside the tracking code

Maybe this would work better (un-tested)?
_paq.push([‘setVisitorCookieTimeout’, 1209600]);
_paq.push([‘setSessionCookieTimeout’, 0]);