I have a site which needs to track referrals from other registered affiliate sites. Each of these partners can redirect to any page within my site, and have to append their tracking parameters onto the querystring e.g:
http://www.somesite.com/Home/About?i=ABCDEFG&t=65DCEFC2-2B73-429C-BA23-C824BFD01844
On each request I want the site to first check whether an 'Introducer' object has been stored in the session. If not then check for the existence of these params and save the corresponding Introducer object (or use a default if they are not provided). I currently only have this implemented in selected controllers / actions and am calling the code manually however would like it to happen automatically - would a custom route handler be the best for this? or simply overriding OnActionExecuting in a controller base class and handling here?