Traffic Analysis


What is the most economical way to use scroll tracking? Let’s say you have 1,000 online shoppers coming to your web page. A percentage of these people will abandon your sales promotion letter before reading or scrolling to the end. They won’t even see your order link. You, as an online business owner, will need to ascertain why they are abandoning your web page. This is where scroll tracking comes in. To use the stingy version of scroll tracking, you would want to partition your sales promotion letter into 4 or 5 sections. Most web hosting companies have website traffic statistics. If you do not, call your web hosting company and ask them to have it added, then, you can use your website traffic statistics to ascertain the point at which your online shoppers are abandoning.

(more…)

Have you ever made a physical log of live testimonies with your cellular phone? Recording live testimonies has never been easier. Let me start with a case study. I’m a collector of information, and I consider myself a gigantic seminar addict as well. A few months ago, I was at one of Mark Victor Hansen’s seminars named “The Mega Speaking Empire”. Towards the end of the event, they asked me to come on stage and explain to everyone there that we were looking for live testimonials to put on a web page to sell a recorded version of the entire event. I gave everyone Mark Victor Hansen’s AudioGenerator live testimonials phone number, and many of them called soon thereafter.

(more…)

The answer is YES, thanks to TrafficCleaner.com!

In this article I will shortly describe my own experience about how I now generate income through the normally useless and inevitable percentage of poor traffic getting on my website. This is new and amazing and was just not possible before!

I run a small web shop selling perfumes and other popular beauty products. My daily average visitors are between 1’000 and 1’500, so I get around 50K unique visitors every month. The site generates approx. 15’000 $ revenues a month. I really enjoy this business. However, the net income still does not allow me to give up my regular job without second thoughts.

I am not really an internet freak, but doing this business now since 2001, I’ve developed my skills enough to start managing and seeing through the relevant issues. Therefore, I’ve signed up with a traffic analyzing company to check and understand how and from where my traffic comes from. The results surprised me: an entire 30% of my traffic (!) is coming from countries from which I’ve never ever received one single order (India, China, Pakistan, etc.) … and I do not think this will drastically change any time soon.

This is a serious issue, as it means that about 20K visitors a month my web shop receives, are statistically a waste.

As I could not get this “waste” feeling out of my mind, I was timelessly thinking about how I could possibly turn this useless traffic into something a bit more positive. Searching through the web I finally found an application which sounded very smart and easy indeed: manage the traffic I want to allow on my web shop while blocking, forwarding and selling the traffic I do not need somewhere else and even saving server resources and costs while doing so!

As it seemed so easy, I signed up for TrafficCleaner.com, a remote IP filtering service which is FREE and allows me with just a few clicks to manage the quality of the traffic I want to get on my web shop. It was really as easy as 1, 2 and 3 to sign up, install and select the countries I wanted to allow or to filter.

In the meantime, I created a simple web page with Google Adsense and Kanoodle advertisements and I now simply send the unwanted filtered traffic to that URL.

The results were surprising: during the first week I sent over 4’000 visitors to that page and through Adsense and Kanoodle I received an average of 0.12 $ per click. About 10% of the visitors clicked on one of the advertisements links and that only generated an extra income of about 200 $ in the first month since using the application.

But there is even more. After starting to use the IP filtering service, my bandwidth needs dropped 35%, and my server really got faster. My site has a better connect time and therefore provides a better and faster service to my potential customers.

So this is my conclusion: I do believe and recommend that anyone who is doing business through the internet should seriously consider using TrafficCleaner.com application to save costs, enhance resources and make some extra profit!

About The Author

Zoltan Csesznik

I am a website owner.

csesznik@bluestarld.com

“Mirror mirror on the wall, who’s the fairest of them all?” I’m going to bet that it’s not you, um I mean, not your website. With all of the new websites popping up all over the place how do you know where you rank? How popular is your site compared to the next one?

In most cases it’s safe to say that we all want our website to be popular. Maybe it means our business will be more profitable or maybe it’s just good for the ego. Now there is a website that ranks the popularity of your website. The website is http://www.alexa.com.

Alexa.com is a blast to use and is one of those websites that is hard to leave. For starters, Alexa.com lists the most popular websites starting from the #1 position. It also lists the “Movers And Shakers”, which are websites that are rapidly gaining or loosing popularity on the web. Alexa.com is a great tool for discovering new websites to visit because you can see where everybody else is going. It’s fun, informative, and can be a good tool for comparing your website to the competition.

So how does Alexa.com work? In 1997 Alexa.com created a tool bar that tracked which websites people visited on the web. The tool bar was incorporated into early versions of NetScape and Internet Explorer. Today there are over 10 million Internet users who browse the Internet while using some form of the Alexa.com tool bar. These users are constantly generating statistics about their browsing habits. Alexa.com uses the data to create reports that outline the popularity of websites on the Internet.

So the next time you want to see how popular your website is, visit Alexa.com. Simply type in your website’s address (www.yoursite.com) into the “search the web” box and press go. It will send you to a page full of statistics showing you how popular your website is right now. Just remember that being popular isn’t the only important thing in life. There are good looks, money, and Monday Night Football too.

About The Author

Craig Neidel has worked for NetSource Communications Inc. for 6 years and has experience in web development, e-commerce solutions and web marketing. NetSource Communications creates custom e-commerce solutions and web applications. http://www.ntsource.com.

There are many different traffic analysis tools, ranging from simple counters to complete traffic analyzers. Although there are some free ones, most of them come with a price tag. Why not do it yourself? With PHP, you can easily create a log file within minutes. In this article I will show you how!

Getting the information

The most important part is getting the information from your visitor. Thankfully, this is extremely easy to do in PHP (or any other scripting language for that matter). PHP has a special global variable called $_SERVER which contains several environment variables, including information about your visitor. To get all the information you want, simply use the following code:

// Getting the information
$ipaddress = $_SERVER['REMOTE_ADDR'];
$page = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
$page .= iif(!empty($_SERVER['QUERY_STRING']), "?{$_SERVER['QUERY_STRING']}", "");
$referrer = $_SERVER['HTTP_REFERER'];
$datetime = mktime();
$useragent = $_SERVER['HTTP_USER_AGENT'];
$remotehost = @getHostByAddr($ipaddress);

As you can see the majority of information comes from the $_SERVER variable. The mktime() (http://nl2.php.net/mktime) and getHostByAddr() (http://nl2.php.net/manual/en/function.gethostbyaddr.php) functions are used to get additional information about the visitor.

Note: I used a function in the above example called iif(). You can get this function at http://www.phpit.net/code/iif-function.

Logging the information

Now that you have all the information you need, it must be written to a log file so you can later look at it, and create useful graphs and charts. To do this you need a few simple PHP function, like fopen (http://www.php.net/fopen) and fwrite (http://www.php.net/fwrite).

The below code will first create a complete line out of all the information. Then it will open the log file in “Append” mode, and if it doesn’t exist yet, create it.

If no errors have occurred, it will write the new logline to the log file, at the bottom, and finally close the log file again.

// Create log line
$logline = $ipaddress . '|' . $referrer . '|' . $datetime . '|' . $useragent . '|' . $remotehost . '|' . $page . "\n";

// Write to log file:
$logfile = '/some/path/to/your/logfile.txt';

// Open the log file in "Append" mode
if (!$handle = fopen($logfile, 'a+')) {
	die("Failed to open log file");
}

// Write $logline to our logfile.
if (fwrite($handle, $logline) === FALSE) {
	die("Failed to write to log file");
}

fclose($handle);

Now you’ve got a fully function logging module. To start tracking visitors on your website simply include the logging module into your pages with the include() function (http://www.php.net/include):

include ('log.php');

Okay, now I want to view my log file

After a while you’ll probably want to view your log file. You can easily do so by simply using a standard text editor (like Notepad on Windows) to open the log file, but this is far from desired, because it’s in a hard-to-read format.

Let’s use PHP to generate useful overviews for is. The first thing that needs to be done is get the contents from the log file in a variable, like so:

// Open log file
$logfile = "/some/path/to/your/logfile.txt";

if (file_exists($logfile)) {

	$handle = fopen($logfile, "r");
	$log = fread($handle, filesize($logfile));
	fclose($handle);
} else {
	die ("The log file doesn't exist!");
}

Now that the log file is in a variable, it’s best if each logline is in a separate variable. We can do this using the explode() function (http://www.php.net/explode), like so:

// Seperate each logline
$log = explode("\n", trim($log));

After that it may be useful to get each part of each logline in a separate variable. This can be done by looping through each logline, and using explode again:

// Seperate each part in each logline
for ($i = 0; $i < count($log); $i++) {
	$log[$i] = trim($log[$i]);
	$log[$i] = explode('|', $log[$i]);
}

Now the complete log file has been parsed, and we’re ready to start generating some interesting stuff.

The first thing that is very easy to do is getting the number of pageviews. Simply use count() (http://www.phpit.net/count) on the $log array, and there you have it;

echo count($log) . " people have visited this website.";

You can also generate a complete overview of your log file, using a simple foreach loop and tables. For example:

// Show a table of the logfile
echo '<table>';
echo '<th>IP Address</th>';
echo '<th>Referrer</th>';
echo '<th>Date</th>';
echo '<th>Useragent</th>';
echo '<th>Remote Host</th>';

foreach ($log as $logline) {
	echo '<tr>';

	echo '<td>' . $logline['0'] . '</td>';
	echo '<td>' . urldecode($logline['1']) . '</td>';
	echo '<td>' . date('d/m/Y', $logline['2']) . '</td>';
	echo '<td>' . $logline['3'] . '</td>';
	echo '<td>' . $logline['4'] . '</td>';

	echo '</tr>';

}

echo '</table>';

You can also use custom functions to filter out search engines and crawlers. Or create graphs using PHP/SWF Charts (http://www.maani.us/charts/index.php). The possibilities are endless, and you can do all kinds of things!

In Conclusion…

In this article I have shown you have to create a logging module for your own PHP website, using nothing more than PHP and its built-in functions. To view the log file you need to parse it using PHP, and then display it in whatever way you like. It is up to you to create a kick-ass traffic analyzer.

If you still prefer to use a pre-built traffic analyzer, have a look at http://www.hotscripts.com.

About The Author

Dennis Pallett is a young tech writer, with much experience in ASP, PHP and other web technologies. He enjoys writing, and has written several articles and tutorials. To find more of his work, look at his websites at http://www.phpit.net, http://www.aspit.net and http://www.ezfaqs.com.