Powered By

Powered by Blogger

Tampilkan postingan dengan label stats. Tampilkan semua postingan
Tampilkan postingan dengan label stats. Tampilkan semua postingan

Minggu, 11 Juli 2010

Linux Market Share At A Record High

The W3S stats for last month (June) show the Linux market share at 4.8%. Sure, it's not 100% accurate but it's nevertheless impressive. The stats only include internet-connected computers (desktops only - servers are not included in these stats) but since there is a fairly big number of computer using Linux which are not connected to the internet, the number may actually be pretty close to the actual Linux market share.

This is a 0.3% increase since last month which even though it might not seem like much, comparing it with the total Linux market share is actually a lot!


W3S stats is the optimistic upper margin. The lower margin seems to still be somewhere around 1%, with marketshare.hitslink.com reporting 1.07% and Statcounter reporting even lower stats: 0.8% - all for June 2010.


Sabtu, 02 Januari 2010

Display Google Analytics Stats On Your Website [Public Stats]

We use GAPI (gapi-google-analytics-php-interface) to display Google Analytics page views and visits to everyone, without requiring a password - it's all done by using the Google Analytics API.

To make some Google Analytics stats public, you need a PHP5 web host but it you don't have one, there are lots of free alternatives out there and you can then embed the stats using in iframe (very easy).

I have modified the example report which comes with GAPI to display the month, year, number of page views, visits and so on, and sort it by year and then month. It basically looks like this:

google analitycs public stats.

You can view a demo right here, on Web Upd8. As you can see, Google Analytics public stats can be easily integrated into Blogger too (I saw lots of requests of using this in Blogger blogs).

Download GAPI + my Google Analytics public stats example


To use GAPI, simply download the archive and extract it to your web host, then save the following file under any name you want (let's say gapistats.php) and place it in the same folder as GAPI:
<?php
define('ga_email','google_analytics_google_email@address.com');
define('ga_password','your_Google_Analytics_password');
define('ga_profile_id','YOUR GOOGLE ANALYTICS PROFILE ID');

require 'gapi.class.php';

$ga = new gapi(ga_email,ga_password);

$today = date('Y-m-d');
$search = array("2009","2010","01","02","03","04","05","06","07","08","09","10","11","12");
$replace = array("","","January","February","March","April","May","June","July","August","September","October","November","December");
$search2 = array ("<");
$replace2 = array ("");

$ga->requestReportData(ga_profile_id,array('month','year'),array('pageviews','visits','bounces','entrances'),array('-year','-month') ,$filter=null,$start_date='2009-03-01',$end_date=$today,$start_index=1,$max_results=1000);
?>
<table width="99%" align="center">
<tr>
<th>Month</th>
<th>Year</th>
<th>Pageviews</th>
<th>Visits</th>
</tr>
<?php
foreach($ga->getResults() as $result):
?>
<tr valign="center" align="center">
<td width="25%"><?php echo str_replace($search,$replace,$result) ?></td>
<td width="20%"><?php echo $result->getYear(str_replace($search2,$replace2,$result)) ?>
<td width="30%"><?php echo $result->getPageviews() ?></td>
<td width="25%"><?php echo $result->getVisits() ?></td>
</tr>
<?php
endforeach
?>
</table>
<br/><br/>
<table>
<tr>
<th>Total Months:</th>
<td><?php echo $ga->getTotalResults() ?></td>
</tr>
<tr>
<th>Total Pageviews</th>
<td><?php echo $ga->getPageviews() ?>
</tr>
<tr>
<th>Total Visits</th>
<td><?php echo $ga->getVisits() ?></td>
</tr>
<tr>
<th>Results Updated</th>
<td><?php echo $ga->getUpdated() ?></td>
</tr>
</table>


Then simply link to this page, or embed it in an iframe. Example:
<iframe allowtransparency="true" scrolling="no" frameborder="0" style="border: none; width: 550px; height:600px;" src="http://path.to/gapistats.php"></iframe>


What you can change in this script:

a) Obviously, enter your Google Analytics email address (GMAIL), password and Google Analytics profile ID on top of the page, as suggested. To find out your Google Analytics profile ID, select a profile, then click "Edit" and you will see the profile ID in the top left corner:

google analytics profile id

b)
requestReportData(ga_profile_id,array('month','year'),array('pageviews','visits','bounces','entrances'),array('-year','-month') ,$filter=null,$start_date='2009-03-01',$end_date=$today,$start_index=1,$max_results=1000)

This part basically contains all the variables. Edit the start date, replace 'pageviews' and 'visits' with another variable if you want to display some other stats, etc. Or leave it as is. You can find more info on the Google Analytics API docs.

Jumat, 02 Oktober 2009

Koego: Complete Twitter and FriendFeed Statistics For Your Account

At a first look, Koego is just another free statistics service for your blog which does not impress and gives you no reason to give up Google Analytics for it. But then I discovered the Social Media stats integrated into Koego and that's when I was really impressed. Basically, Koego provides stats for your Twitter account (and FriendFeed) which inlude:

- your following / followers count each day
- people who retweet you the most
- mentions
- mentioning
- how much you tweet per time of day, day of week and so on
- the keywords and hash tags you use the most
- the clients you use the most (if you use more than 1)
- and many other

Take a look at these screenshots (I've just been using Koego for a couple of days):
social media statstwitter stats


And (even tough I didn't provide any info on this) it can also be integrated into your blog / website for providing Google Analytics-like stats.

You can even integrate your Blog stats into Twitter (if you choose to enable this), which will provide a daily tweet with some stats such as best keyword, top referrer and so on:

twitter koego blog stats


If you use Twitter or FriendFeed on a daily basis, Koego is a must!