Configuration of Tracking Cookies


#1

Hi There,

Following this topic, Configuration of Tracking Cookies on this page JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3, 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?