Referral links like Amazon

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?

Yes by default Piwik stores the referral information in a cookie, for a duration of 6 months.
see http://developer.piwik.org/api-reference/tracking-javascript

setReferralCookieTimeout( seconds ) - the default is 6 months