Keeping urls clean with Prosper202 & PHP Sessions
Tuesday, November 25, 2008 17:21I constantly try to envision through the eyes of the person whom comes to one of my pages. What could scare them off?
A pet peeve of mine personally is seeing some tracking variables up in the url. Granted most people are retarded and don’t really know what all that gobbily gook really means. That’s the exact reason I think that could be intimidating to a user. Maybe I’m being to paranoid about it, and hell, I doubt that having clean urls is going to make a huge difference. However I do think it does make a positive sales difference, and it’s pretty easy to do – so why not?
Set up your Prosper202 Campaign URL to point to a page call redirect.php and passing the id in the variable id.
example: http://www.someplace.com/redire.php?id=[Prosper202_subid]
redirect.php:
<?php
session_start(); //start a session
$_SESSION['id'] = $_GET['id']; //pass the id
//if (!$_GET['offer'])
//{
// header("Location: ./special-offer.php?id=" . $_GET['id']);
//}else
header("Location: ./"); //goto index file
?>
Pretty easy stuff. There’s some extra code in the middle if you wanted to direct the user to somewhere like a special offer. Just pass any value into offer, example http://www.someplace.com/redire.php?offer=1&id=[Prosper202_subid]
And the index.php page.
<?php
session_start(); //start the session
if(!$_SESSION['id']){ //if the session id variable doesn't have a value, send them through the Prosper202 back-end so we can track it.
header("Location: http://tracking-domaine.com/tracking202/redirect/dl.php?t202id=number&t202kw=home");
}
$url = 'http://www.affiliate-url.com/URL/track.php?SubID=' . $_SESSION['id']; //your affiliate url
?>
<html>
<head>
<title>Title</title>
</head>
<frameset cols="*">
<frame src=<? echo $url; ?>>
</frameset>
</html>
<?
session_destroy();//destroy the session
?>
This example uses a frame, but it doesn’t have to be. This is just a basic example.
However now you can pass your Prosper202 tracking Subid into your LP and the user is none the wiser. Now go make monies.






















PPC.bz says:
November 25th, 2008 at 8:52 pm
MOAR P202 HACKS!