Simple Redirect Script For Tracking Affilaite Sales On The FLY

2 replies
I posted this in a response in another thread but figured many people would find this useful. You can use this redirect script with any affiliate program that has custom tracking parameters like tid=, sid= campaign= etc

Here is a simple redirect script you can use to track sales.

Set it up on a domain name for your offer.

Upload the index.php file to to your domain name or folder.

Track links by adding /?r= to the end of your URL

Example campaigns.

yourdomain.com/?r=Facebook
yourdomain.com/?r=SoloADone
yourdomain.com/?r=youtube

Just change /?r= whenever you post links in different places.

You can also clean your links up from with in cpanel.

Just create some redirect.

Turn yourdomain.com/?r=Facebook into yourdomain.com/facebook/


<html>
<head>
<title></title>


<meta property="og:title"
content="Add In your title" />

<meta property="og:description" content="Add a description. Also add an image so if you were say posting in facebook a relevant image and description would show up." />

<meta property="og:image" content="ad.jpg" />

<meta http-equiv="refresh" content="0; url=http://www.affiliatelink.com/?tid=<?php echo htmlspecialchars($_GET['r']); ?>">

</head>
<body>



</body>
</html>
#redirect #script #simple #tracking
  • Profile picture of the author MatthewM
    You can also add. <?php echo htmlspecialchars($_GET['r']); ?> to your value in your opt in form to track where leads are coming from.

    Take care.
    {{ DiscussionBoard.errors[9051548].message }}
  • Profile picture of the author peterslove
    I ll like to know if it is possible to track optins and redirect visitor to affiliate offer without a thank you page. So i am using Adkreator for creating opt in landing page and after the visitor signs up, i want to be able to track that as a conversion and then redirect the visitor to an affiliate offer (i have no access to put a tracking code here)

    so i was thinking
    visitor ----> optin form ----> redirect via php or meta refresh with conversion tracking ------> affiliate offer

    now using your example above. will it work if i put the optin conversion code just before the meta refresh redirect?
    code :
    <img height="1" width="1" border="0" style="display: none;" src="http://prosper202.cashnowjob.com/tracking202/static/gpx.php?amount=" />
    Is this possible with prosper202?
    I ll appreciate any help i can get,
    Thank you
    {{ DiscussionBoard.errors[9636537].message }}

Trending Topics