I have some browser specific offers and I have a traffic source I can't really target browsers on that I'd like to be able to. Basically if its chrome send here if its ie send here if its firefox send here if its aol send here if its anything else send here but still able to pass variables back to the prosper links probably with a get.
I've found this wonderful script here https://github.com/cbschuld/Browser....ib/Browser.php
I'm not much of a coder
But I'd like to incorporate this code some how.
something like this would work
<?php
$u_agent = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/MSIE/i', $u_agent))
{
//internet explorer
$url = "http://www.trackingdomain.com/tracking202/redirect/dl.php?t202id=666&t202kw=" . $_GET['kword'];
}
elseif (preg_match('/Chrome/i', $u_agent))
{
//chrome
$url = "http://www.trackingdomain.com/tracking202/redirect/dl.php?t202id=666&t202kw=" . $_GET['kword'];
}
elseif (preg_match('/Firefox/i', $u_agent))
{
//firefox
$url = "http://www.trackingdomain.com/tracking202/redirect/dl.php?t202id=666&t202kw=" . $_GET['kword'];
}
else
{
//everything else
$url = "http://www.trackingdomain.com/tracking202/redirect/dl.php?t202id=666&t202kw=" . $_GET['kword'];
}
header("Location: $url");
?>
I got it thanks guys.
Or if you use the STM mobile tracker ( that tracks web too ) , you can redirect on OS / Country / Browser and more.