I don't usually cloak or write scripts, so can someone look over this. It works well as far as I can tell, but can it be simplified?
It's both a split test(let me know if you know how to make it perfect 50/50) and fb cloak.
And in the event this is the best way to go about this have at it.
It's both a split test(let me know if you know how to make it perfect 50/50) and fb cloak.
I'm using a single meta refresh.<?php
$tracking_ref = $_SERVER['HTTP_REFERER'];
$a=array( 'http://domain.com/metaredirect1', 'http://domain.com/metaredirect2');
if(strpos($tracking_ref,"intern")){
}elseif(strpos($tracking_ref,"facebook")){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " .$a[array_rand($a)]);
}
?>
And in the event this is the best way to go about this have at it.