Quote:
Originally Posted by EscortBiz
Since nats is something im considering id love to know how they did this without having you change links? One of my main reasons for not using nats now is because affs will have to change links but if it can be done without them doing anything it can be a big plus
|
1) Import old users into NATS maintaining usernames
2) Create translation database or array for old trackingID > new NATS campaignID
3) Create script to generate new NATS code ie:
function generateNatsCode ($siteID, $campaignID) {
$programID = 1; // default program
$natsid = str_replace('=', '', base64_encode($campaignID.':'.$programID.':'.$site ID));
return $natsid;
}
4) Do a redirect to the new NATS URL with NATS ID intact. ie:
$natslink= generateNatsCode ($siteID, $campaign);
$url = "http://www.domain.com/track/$campaignID";
header("Location: $url\n\n");
exit;
5) Have apache run this script whenever an old ID is requested...
Shouldnt be too complicated to do.