11 Comments Already

mygif
bubbles Said,
July 4th, 2008 @4:00 pm  

I dumb it down even further. I split test one ad per offer at a time. And usually only one per day. I direct link and just let the affiliate network do all the tracking. Their click count is always within like 10 clicks of what facebook says.

Saves me 10 minutes of coding so ha!

mygif
Neil Said,
July 4th, 2008 @4:37 pm  

@bubbles - Downside to direct linking is that if they offer gets pulled or payout decreases you can not switch to a new offer that another network has. For example in my “successful campaign revealed” post I was direct linking and the payout decreased from 3.25 to 2.65 and since I was direct linking I was unable to change my ads to another network that still paid $3.25.

If you do not have a landing page you can use this method combined with a php redirect.

mygif
crunkeee Said,
July 4th, 2008 @6:23 pm  

I’m new to PHP but I sorta get it. You explained it nicely.

But if I am direct linking straight to the merchants landing page why is there a need for a PHP redirect as you stated in your response to bubbles? If you are not using your own website with a pre-sell landing page then there is no place to insert your PHP script into.

You are becoming the defacto facebook ads guru. Alot of useful info. Thanks again Neil.

Crunk

mygif
July 5th, 2008 @9:06 pm  

You script may work, but it could be optimized a bit…

You set your base link, then check to see if ’subid’ is set in the querystring. If you try to call $_GET['subid'] when it is not set in the querystring, PHP will throw an error (depending on how your error handling is set). Once you check that it is set, you verify that it is an alphanumeric string, then append it to the end of your base link. Then throw a header redirect which will be faster than any text link, javascript, or meta redirect.

mygif
Colin Said,
July 5th, 2008 @11:15 pm  

Would this code work for going directly to the advertisers page (no landing page)? It’s successfully redirecting to the advertisers page, I just don’t know if it’s going to cause any errors, or if it’s successfully putting the subid in (I’ll check when stats update on that).

mygif
Colin Said,
July 6th, 2008 @12:49 am  

I’ll try again with the code, ill leave off the php tags:

$sub = $_GET[’sub’];

header( ‘Location: http://afflink.com&subid=sub‘ ) ;

mygif
July 6th, 2008 @1:05 am  

Yeah… my code got stripped too…

$link = ‘http://hjlas.com/click/?s=26467&c=82445′;
if(isset($_GET['subid'])&&preg_match(’/^[a-zA-Z0-9]+$/’,$_GET['subid'])) {
$link .= ‘&subid=’.$_GET['subid'];
}
header(’Location: ‘.$link);

mygif
Colin Said,
July 6th, 2008 @7:53 pm  

I get an error in line 3 when i run your code Kyle (the second line of what you posted).

Also, mine doesnt actually insert the subid if anyone is wondering.

mygif
Neil Said,
July 6th, 2008 @8:03 pm  

I’ll post a video for you guys doing it with both a landing page and header redirect. I got posts lined up for the next day or two so expected in 3 to 4 days.

mygif
July 7th, 2008 @2:15 am  

Man I need to put more time into learning PHP. The library stole my book after 3 months…

mygif
Wade Said,
July 8th, 2008 @7:11 am  

Nice tip Neil. I have implemented some of my own methods now, but this would have been helpful about a month ago when I was creating a new php redirect file for everything lol.

How about for your next tip, the code to have multiple affiliate links. like say mate 1. They have like 5 different campaings. 40+ males, 25+ males, 25+ male and female, ect. You could assign a variable to each one of them. then link like site.com/mate1.php?cid=2&sid=254. Then in your php code you assign 1= aff link to 40+males, 2 = aff link to 25+ males usa, ect. I could do this but it is 1am, i have a headache, and have to work in the morning. If nobody understands me, then i will write one up tomorrow.

Related Post

Leave Your Comments Below

Please Note: All comments will be hand modified by our authors so any over offensive comments will be removed and your submitted comments will be appreared after approved

Categories

Recent Posts

Archives

Sponsored Links

Knowledge is Power


Recent Comments