Passing keywords through multiple urls

DomboCom

New member
Jun 4, 2009
381
8
0
This is probably a durr hurr question to you guys, but I'm clueless here.

I want to avoid using Tracking202's offer rotator because it seems random and doesn't track which offer is converting. So I need help passing variables through my own offer rotator.

I set up individual T202 campaigns for each offer, so I have 5 seperate T202 links. Setup looks like this...

Advertisement -> Landing Page -> offerrotator.php -> mysite.com/tracking202/redirect/dl.php?t202id=12345&t202kw=%keyword%

Normally the T202 link would be used in the advertisement, with %keyword% appended there, but I'm just using a direct link setup in the offer rotator. How can I get %keyword% from the start and make it pass through?

Am I making any sens or am I overcomplicating this whole thing?
 


Code:
$linksfile ="links.txt";
$links = file("$linksfile");

$use_this=array_shift($links);

array_push($links,$use_this);

trim("$use_this");

file_put_contents("$linksfile","");

foreach($links as $link)
{
file_put_contents("$linksfile","$link",FILE_APPEND);
}
links.txt just lists the 5 rotating urls like:
Code:
[COLOR=White]http:// mysite.com/tracking202/redirect/dl.php?t202id=offer1&t202kw=[/COLOR][COLOR=White]%keyword%
http:// mysite.com/tracking202/redirect/dl.php?t202id=offer2&t202kw=[/COLOR][COLOR=White]%keyword%
http:// mysite.com/tracking202/redirect/dl.php?t202id=offer3&t202kw=[/COLOR][COLOR=White]%keyword%[/COLOR]
 
hmmmm.... not sure how you could do it when using a .txt

In PHP, you can grab the keyword out of the URL by doing

<?php
@ $_GET['t202kw']; ?>

...and the store that as a variable

<?php
$kw = @ $_GET['t202kw']; ?>
// @ sign is there to ensure no error messages show

Now that you have that... you can literally format your own links and then...

http://mysite.com/tracking202/redirect/dl.php?t202id=offer1&t202kw=<?php echo $kw; ?>

Im a PHP noob myself so Im not sure if thats any help to you. Maybe someone else can chime in - I'd like to know myself.

Worst case scenario, just use the code Prosper gave you and figure out which offer converts best by looking directly in your reports at the network.
 
Hey thanks Garret,

I don't even qualify as a noob to this stuff. I'm following the logic of what you're saying, but I wouldn't know how to make that all happen.

I'm probably banging my head for something that is just slightly convenient, but I'd really like to get this to work. Mostly so the links are evenly distributed and each offer gets equal amounts of clicks. I think T202 selects them randomly, but maybe I'm wrong.