Referral links like Amazon


#1

Hi all,
I’d like to build some referral link tracking as Amazon does.
Amazon leaves a 24h cookie on user browser so if the user buy something in this range of time, this will be tracked to the referral.
Is it possible with piwik?


(Matthieu Aubry) #2

Yes by default Piwik stores the referral information in a cookie, for a duration of 6 months.
see JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

setReferralCookieTimeout( seconds ) - the default is 6 months