Today I encountered a problem while setting up my facebook campaign. I was direct linking. The URL being displayed on the Ad was of my CPA network which was unacceptable. I first though of a redirect but this would not work well because of the Sub Id’s being passed.
I put my coding hat on and programmed a simple redirect on PHP. It serves as a relay during redirect for the sub id. The code is below:
<?php// Fetching Sub Ids$subid1=$_GET["subid1"]; $subid2=$_GET["subid2"]; $subid3=$_GET["subid3"];// Creating new URL . Take the static part of your tracking URL.$url="http://www.website.com".$subid1."&subid2=".$subid2."&subid3=".$subid3; // Redirecting to new URL header ("Location: $url"); ?>
Save this code into a '.php' file and name it 'Index.php'. Put this file in the home directory or the sub directory you want to work with.
Your new URL will look like:
This will surely make your life a bit easier trying to mask a URL and pass Subid at the same time.