I have recently launched a site for a customer which we would like to track initial visits on URLs like below via Google Analytics, and then track revisits on their respective referral code:
Users visit:
domain.com/?ref=code1
domain.com/?ref=code2
domain.com/?ref=code3
Once they land, we drop a cookie with the ref code and this determines what they see on revisiting the site. They are locked to this ref code unless they go through another affiliate website and come in on a new referral code.
We would like to know which code they came in on, and then know which code is within the respective cookie? That data can then be drilled down into via filters or separate profiles perhaps?