For different email campaigns, modify their links. So have one email campaign go to
yoursite.com/landing.php?campaign=1 the other to
record.php?fromsite=sitename&ip=IPAddress. Or something like that.