Categories

Adverising

Blogroll

Everyone working on internet marketing knows that it is required to rotate landing pages to test which landing pages can have better CTR and convert better. Here is code which I have been using.

1. Create index.php and paste the following code. $landingpage[1] =

is where you need to keep on adding landingpages as $landingpage[1], $landingpage[2], $landingpage[3] and so on. all landing pages should be in same directory.

———

<?

//Tracking202 Landing Page Rotation Script

//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
$landingpage[1] = ‘fb1.htm’;
$landingpage[2] = ‘fb2.htm’;

//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);

//include the landing page
include_once($landingpage[$lpNumber]);

//terminate script
die();

?>

——–

2. Create count.txt , empty file

3. I have more than one scripts to rotate landing pages and I can’t recall where I copied this code from but this really is helpful to me. I am grateful to the person who posted this code on internet.

none

Recently, i have been working on CPA offers whenever i have time after my paid job.  It is already time for me to note down things i have tried.

One of the key factor in this marketing is to make people aware of the offer. In a way, it is more like disturbing people when surfing the net like ‘hey take a look, here is a good offer that you just need to key in your email address’

Adding sound in the landing page is one of the ways to make people aware of your landing page which can increase the CTR . I look through the net and here is what i have done.

1. download nifty player from http://www.varal.org/niftyplayer/

2. zip up and place files together with audio you want to play.

3. add following code in your html page.

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ width=”165″ height=”38″ id=”niftyPlayer1″ align=”">
<param name=”movie” value=”audio/niftyplayer.swf?file=audio/audio1.mp3&as=1″>
<param name=”quality” value=”high”>
<param name=”bgcolor” value=”#FFFFFF”>
<embed src=”audio/niftyplayer.swf?file=audio/audio1.mp3&as=1″ quality=”high” bgcolor=”#FFFFFF” width=”165″ height=”38″ name=”niftyPlayer1″ align=”" type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”>
</embed>
</object>

 

4. In my case, I created a folder called audio in the same folder where my html page is located. Then i zipped up player in audio folder and placed my audio files in audio location, you can see my audio file name is audio1.mp3. Hope this helps.

none

Most commented

  • None found