Configuration of Tracking Cookies

Hi There,

Following this topic, Configuration of Tracking Cookies on this page http://developer.piwik.org/api-reference/tracking-javascript, I am trying to expire a visitors UTM cookie data.

The problem I have is, when we send an email out with UTM codes 4 weeks ago, and then another email today with new UTM codes, the visitor tracking of the referral data attributes the data to the old UTM codes.

I found and assume this is the configuration variable to change to expire that referral cookie setReferralCookieTimeout, however it doesn’t seem to be working. See my tracking code below.

For testing, I have set all cookie variables to 5 seconds.

When we view the real time page, the referrer never changes. When we view the referrers source-medium report, it only detects the first source-medium.

Any ideas on how to fix this?