Dynadot โ€” .com Registration $8.99

Redirect tracking script, does this exist?

Spaceship Spaceship
Watch
Impact
62
I want to create a lander page of my own with my own affiliate codes and stuff and redirect my domains to it.

The catch is though I want to redirect to something like http://landerpage.com/?domainijustregistered.net so I can track the traffic and stuff.

Does this exist? If something is simular could you point me to it. Reps added for help.

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Quite easy to make, and it would be a fun initial project to do with PHP.

Why not do it yourself? :tu:
 
0
•••
I can't program at all, totally clueless which is why I posted, lol.
 
0
•••
This is easy, though i doubt there is any pre-made ones for it.
Which affiliates are you using, how you are going to redirect traffic? I can help you. For ex: if the user is coming from mydomain1.com will the affiliate link be http://gosomewhere.com/?sub=mydomain1.com ?
 
0
•••
I just want a page and then use domain forwarding to send it to my page and have a way to track the hits from the domain.

Say my main page is lander.com and I sent 50 hits from lulu.org, I just want a way to track that.
 
0
•••
I can guide you to do this. Do you know how to create a database?
 
0
•••
I can create one through my control panel, its MySQL.
 
0
•••
I use cPanel too. And there is build in tracking script, called "awstats". It is under "Log" category in cPanel main page.
Or ask your hosting company whether they can install awstats for you :tu:
 
0
•••
Use this php code...

PHP:
<?php



/**

 * Place in a blank PHP page

 */



// Change to the URL you want to redirect to

$URL="http://www.example.com";



header ("Location: $URL");



?>
 
0
•••
Create a MySQL db and go to PhpMyAdmin to edit it. Create a new table named referals. Specify fields as id,referer and date.

Than use this on your lander.

PHP:
<?PHP

if ($_SERVER[HTTP_REFERER] != "") {
$referrer = explode("/",$_SERVER[HTTP_REFERER]);
$referrer = explode(".",$referrer[2]);
$c = count($referrer) - 1;
$d = $c - 1;

$host = $referrer[$d].".".$referrer[$c];

mysql_connect("localhost","DB_USER","DB_PASS");
mysql_select_db("DB_NAME");

mysql_query("INSERT into TABLE_NAME VALUES ('','$host',CURDATE())");
}

header("Location: YOUR AFFILIATE WEB SITE TO DIRECT");

?>

this will simply input referring web sites into database in format

1 - mysite1.com - 2008-01-23
2 - mysite2.com - 2008-01-23
3 - mysite3.com - 2008-01-24
 
1
•••
cool, will try it out.

Thanks.
 
0
•••
An easier way to get the Hostname for PHP 5.1.2+ is:

PHP:
$host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);

If you don't have 5.1.2+, you could use the list function to get it. But you really should have it by now.

:tu:

Dan
 
1
•••
Cool, I will check.

Thanks.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back