Looking for something? Try the following:

  1. Visit Our New Tracking202 Support Center & Forum
  2. Read The Proper202 & Tracking202 FAQ
  3. Search This Old Forum
landing page rotator question
Post new topic Reply to topic Prosper202 Forum Index » Tracking202 Pro General Discussions
New Posts Search Forum
Author Message
mikeseo


Joined: Dec 23rd, 2008
Posts: 2

Post Posted: Apr 18th, 2009 at 7:23pm Post subject: landing page rotator question Reply with quote

I tried to modify the offer rotation script to split test landing pages, that means I have to forward the request variables right?

index.php:

<?

extract($_REQUEST);

if (isset($OVKEY)){

$req = "OVRAW={$OVRAW}&OVKEY={$OVKEY}&OVMTC={$OVMTC}&OVADID={$OVADID}&OVKWID={$OVKWID}";

}else{

$req = "t202kw={$t202kw}&t202c={$t202c}&t202t={$t202t}&t202k={$t202k}";

}

//enter your urls below, you can enter as many as you want

$offer[1] = "lp1/index.html?{$req}";

$offer[2] = "lp2/index.html?{$req}";

//this is the text file, which will be stored in the same directory as this file,

//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.

$myFile = "lpcount.txt";

//open the txt file

$fh = @fopen($myFile, 'r');

$offerNumber = @fread($fh, 5);

@fclose($fh);

//see which landing page is next in line to be shown.

if ($offerNumber >= count($offer)) {

$offerNumber = 1;

} else {

$offerNumber = $offerNumber + 1;

}

//write to the txt file.

$fh = fopen($myFile, 'w') or die("can't open file");

$stringData = $offerNumber . "\n";

fwrite($fh, $stringData);

fclose($fh);

//redirect to the affilate url, + add the subid at the end

header('location: ' .$offer[$offerNumber]);

?>

so surfer goes to index.php?request and gets forwarded to lp1/index.html?request or lp2/index.html?request

for yahoo the dest. url is:

lprotate.php

for msn the dest. url is:

lprotate.php?t202kw={QueryString}&t202c={AdId}&t202t={MatchType}&t202k={OrderItemId}

I put the t202pro js on lp1/index.html and lp2/index.html

Am I on the right track?

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4437

Post Posted: Apr 19th, 2009 at 8:40am Post subject: Re: landing page rotator question Reply with quote

I've re-built the script for you, it will pass the query string which you were trying to do. Test it out and see if it works.

Just for fun if you like to see how I did it, it's with PHP's built in function: http://us2.php.net/parse_url

Quote:
<?

//Tracking202 Pro Custom Landing Page Script

$parsed_url = @parse_url('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

$query = $parsed_url['query'];

//landing pages filenames, theses will be rotated between eachother

//theses landing pages must be in the same DIRECTORY as this file

//you can add as many landing pages here as you like

//this includes all of the get urls

$landingpage[1] = '/lp1/index.php?' . $query;

$landingpage[2] = '/lp2/index.php?' . $query;

//this is the text file, which will be stored in the same directory as this file,

//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.

$myFile = "count.txt";

//open the txt file

$fh = @fopen($myFile, 'r');

$lpNumber = @fread($fh, 5);

@fclose($fh);

//see which landing page is next in line to be shown.

if ($lpNumber >= count($landingpage)) {

$lpNumber = 1;

} else {

$lpNumber = $lpNumber + 1;

}

//write to the txt file.

$fh = fopen($myFile, 'w') or die("can't open file");

$stringData = $lpNumber . "\n";

fwrite($fh, $stringData);

fclose($fh);

//redirect to the landing page

header('location: ' . $landingpage[$lpNumber]);

?>

Back to top
mikeseo


Joined: Dec 23rd, 2008
Posts: 2

Post Posted: Apr 19th, 2009 at 9:08am Post subject: Re: landing page rotator question Reply with quote

Works great! Thanks

Back to top
jpdemas
Website Skype


Joined: Apr 2nd, 2009
Posts: 1

Post Posted: Apr 27th, 2009 at 9:53am Post subject: Re: landing page rotator question Reply with quote

Hello Guys!

I'm using pro.Tracking202 and I want to A/B test my landing pages, but I don't know PHP. Is using this script the way to go for me?

If yes, can you explain how to use it?

Thanks!

JP

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4437

Post Posted: Apr 27th, 2009 at 3:01pm Post subject: Re: landing page rotator question Reply with quote

Hi JP sure,

Lets say your landing page is

MySite.com/

And we will create two different landing page variations

MySite.com/page1.php

MySite.com/page2.php

so I'll be split testing between page1.php and page2.php,

I'd redirect traffic to

MySite.com/

and I'd paste this php code on

MySite.com/index.php

So when MySite.com/ loads, it loads our LP rotating script (which will evenly rotate between your two landing pages /page1.php and /page2.php

--

Quote:

<?

//Tracking202 Pro Custom Landing Page Script

$parsed_url = @parse_url('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

$query = $parsed_url['query'];

//landing pages filenames, theses will be rotated between eachother

//theses landing pages must be in the same DIRECTORY as this file

//you can add as many landing pages here as you like

//this includes all of the get urls

$landingpage[1] = '/page1.php?' . $query;

$landingpage[2] = '/page2.php?' . $query;

//this is the text file, which will be stored in the same directory as this file,

//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.

$myFile = "count.txt";

//open the txt file

$fh = @fopen($myFile, 'r');

$lpNumber = @fread($fh, 5);

@fclose($fh);

//see which landing page is next in line to be shown.

if ($lpNumber >= count($landingpage)) {

$lpNumber = 1;

} else {

$lpNumber = $lpNumber + 1;

}

//write to the txt file.

$fh = fopen($myFile, 'w') or die("can't open file");

$stringData = $lpNumber . "\n";

fwrite($fh, $stringData);

fclose($fh);

//redirect to the landing page

header('location: ' . $landingpage[$lpNumber]);

?>

Back to top
metamarketer
AIM


Joined: Apr 24th, 2009
Posts: 7

Post Posted: Jun 19th, 2009 at 2:59pm Post subject: Re: landing page rotator question Reply with quote

would it make sense to include our t202pro javascript code into this?

that way its one file that handles everything: cookie'ing the visitor, split testing, redirecting, etc...

Back to top
Jackfitz
Website Twitter AIM


Joined: Feb 1st, 2009
Posts: 53

Post Posted: Jun 21st, 2009 at 2:49am Post subject: Re: landing page rotator question Reply with quote

I am looking to implement this script on a new campaign I am launching this week. Will placing this script in directory /index.html effect my QS?

Back to top
T202Nana
Website Twitter


Joined: Jul 3rd, 2008
Posts: 57

Post Posted: Jun 21st, 2009 at 7:58pm Post subject: Re: landing page rotator question Reply with quote

No it shouldn't have any real effect on your quality score. Just keep in mind that the page that is served up to the adwords bot will be the one that's used to evaluate the qs of your lp. As long as you've built all pages in the rotations well, you should be fine.

Also make sure to set your server to eval .html as php if you plan to use .html as your index file extension.

Jackfitz wrote:
I am looking to implement this script on a new campaign I am launching this week. Will placing this script in directory /index.html effect my QS?

Back to top
Jackfitz
Website Twitter AIM


Joined: Feb 1st, 2009
Posts: 53

Post Posted: Jun 22nd, 2009 at 1:29am Post subject: Re: landing page rotator question Reply with quote

T202Nana wrote:

Also make sure to set your server to eval .html as php if you plan to use .html as your index file extension.

I'm not sure what you mean by this.

Thanks Nana

Back to top
T202Aaron
Website Twitter AIM


Joined: Sep 9th, 2008
Posts: 986

Post Posted: Jun 22nd, 2009 at 9:41am Post subject: Re: landing page rotator question Reply with quote

The rotator script should be your index file and it should be a php file.

Back to top
InternetMktKing
Website AIM


Joined: Mar 26th, 2009
Posts: 4

Post Posted: Jun 23rd, 2009 at 10:28pm Post subject: Re: landing page rotator question Reply with quote

Hi,

I was hoping a member of the Tracking 202 team or somebody technical could answer this question for me. I plan on using the landing page rotator script to rotate two versions of a landing page on a landing site to test CTR to an offer page as well as conversion but I am not sure if the script handles this specific issue:

Here is the scenario:

I have a landing site with multiple pages to help with Google Q.S. etc Privacy Policy, Disclaimer, Home page etc. Links to these pages exist in the Footer on all pages

I have two versions of my reviw landing page that I want to rotate: Review Landing Page A and Review Landing Page B. This page will be the entry page to my site for traffic via PPC.

So, let's say a user lands on Review Landing Page A, and clicks on the link in the footer of this page to go to the Disclaimer page and after reading the disclaimer clicks on the Review link in the footer of this page to return to Landing Page A.

Question: How do you make sure they are returned to the right landing page, in this example: Review Landing Page A, the page they initially landed on rather than the other page (Review Landing Page B) that is being split-tested. I am assuming they do not click their browser back button.

What PHP code could I insert when generating this Disclaimer.php page to make sure they return to the proper landing page when they click the Review link in the footer of this page.

I hope this is clear.

Thanks in advance for the help.

Back to top
T202Aaron
Website Twitter AIM


Joined: Sep 9th, 2008
Posts: 986

Post Posted: Jun 24th, 2009 at 12:07pm Post subject: Re: landing page rotator question Reply with quote

I see... You want it so when someone clicks to your other pages and when they click back to the main page, it doesn't rotate to the other LP? One way around that is to create 2 folders in your directory. One folder will have your pages like terms and service, disclaimer etc... Then have them link back directly to your first landing page. The other folder will have the same pages as the first, but they will link directly to the second offer. You want to make sure that both your landing pages link accordingly to the pages in each folder. Let me know if this method doesn't work.

Back to top
InternetMktKing
Website AIM


Joined: Mar 26th, 2009
Posts: 4

Post Posted: Jun 28th, 2009 at 7:37pm Post subject: Re: landing page rotator question Reply with quote

Thanks T202Aaron,

The proposed resolution makes alot of sense and sounds very do-able. I will let you know if I encounter any problem when implementing it.

But, I believe I will run into Google's duplicate content rule. Is there a better way to deal with this issue besides setting the robot meta tag to NOINDEX for all files (privacy, disclaimer, etc) in one of the directories.

Thanks in advance for the help.

Back to top
T202Aaron
Website Twitter AIM


Joined: Sep 9th, 2008
Posts: 986

Post Posted: Jun 29th, 2009 at 6:25pm Post subject: Re: landing page rotator question Reply with quote

So far, that's the best thing that I can think of right now. If I come up with a better solution, I will definitely let you know. The Robot.txt and Nofollow links to your pages should help too.

Back to top
Ebbdawg


Joined: Jun 4th, 2009
Posts: 8

Post Posted: Jun 30th, 2009 at 12:14pm Post subject: Re: landing page rotator question Reply with quote

I'm a little confused on this script. First question, if my site uses html, I'm assuming I need to convert the rotating pages to php in order for it to work? Or can I have it rotate html pages?

Also, how do I track which page creates more sales? Where will that data appear?

How will I track which page gets more click thrus? That data is currently being tracked through Google Analytics. Will GA distinguish between the two?

Thanks.

Back to top
T202Aaron
Website Twitter AIM


Joined: Sep 9th, 2008
Posts: 986

Post Posted: Jul 1st, 2009 at 1:07pm Post subject: Re: landing page rotator question Reply with quote

Ebbdawg wrote:
I'm a little confused on this script. First question, if my site uses html, I'm assuming I need to convert the rotating pages to php in order for it to work? Or can I have it rotate html pages?

The rotating script has to be PHP.

Ebbdawg wrote:
Also, how do I track which page creates more sales? Where will that data appear?

The data will appear under the Landing Pages Section in Tracking202pro.

Ebbdawg wrote:
How will I track which page gets more click thrus? That data is currently being tracked through Google Analytics. Will GA distinguish between the two?

If you are using Google analytics, it should distinguish the two pages. Google Analytics will track bounce rate while Tracking202pro will track your conversions. Google analytics is a web analytics tool and Tracking202 is Subid conversion tracking tool.

Back to top
gapro
Website


Joined: Feb 23rd, 2009
Posts: 6

Post Posted: Sep 3rd, 2009 at 1:37am Post subject: Re: landing page rotator question Reply with quote

Thanks for posting this, that's a good start for me.

Two questions:

a) This is a file I/O operation to count.txt for every request. Any thoughts on scalability of such a solution?

b) if lp1 and lp2 promote the same or similar product with a different payout (different affiliate network), how can 202Pro handle the payout difference at in the conversion reporting?

Thanks!

Back to top
mac4417


Joined: May 1st, 2009
Posts: 13

Post Posted: Sep 7th, 2009 at 12:59pm Post subject: Re: landing page rotator question Reply with quote

Hey Aaron,

Marlon here. How are you? Okay, question: is there any way I can use prosper202 to track actual "clicks" on the lp (like a submit button)? Prosper does this great: shows clicks (really impression ssince I am using PPV), gives the conversion (pixel tracking) but does not allow for how many times a lander was clicked through. I have to visually inspect the clicks at the network. Would be great if prosper did that.

Maybe there is an obvious solution (Google analytics)?

Let me know...

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4437

Post Posted: Sep 11th, 2009 at 3:31pm Post subject: Re: landing page rotator question Reply with quote

gapro wrote:
Thanks for posting this, that's a good start for me.

Two questions:

a) This is a file I/O operation to count.txt for every request. Any thoughts on scalability of such a solution?

Should be fine, it is extremely fast and the text-file is super small

Quote:
b) if lp1 and lp2 promote the same or similar product with a different payout (different affiliate network), how can 202Pro handle the payout difference at in the conversion reporting?

Thanks!

Tracking202 Pro uses the Stats202 technology. It will pull the correct amount each subid generated. So yes it will have the correct payout because it is pulled from the actual affiliate network.

Quote:
Hey Aaron,

Marlon here. How are you? Okay, question: is there any way I can use prosper202 to track actual "clicks" on the lp (like a submit button)? Prosper does this great: shows clicks (really impression ssince I am using PPV), gives the conversion (pixel tracking) but does not allow for how many times a lander was clicked through. I have to visually inspect the clicks at the network. Would be great if prosper did that.

Maybe there is an obvious solution (Google analytics)?

Let me know...

The landing page CTR? You can see the landing page CTR here: https://dashboard.tracking202.com/tracking202pro/landing-pages/

that what you are looking for?

Back to top
Post new topic Reply to topic Page 1 of 1