Thursday, May 19, 2011

Tracking Web Page Load and Site Speed Using Google Analytics

Recently I came across one of the interesting feature "Track Page Load Time" in Google Analytics APIs.

This feature provides the metrics on the Page Load Time within the Site Speed Report. This gives us a good opportunity to identifying slow loading pages and fix them for improving the Search Engine Ranking as load time is one of the factor in the page ranking.

Following is the code snippet for capturing the Page Load Time:

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Note that by default Site Speed Reports are not enabled. The function call _gaq.push['_trackPageLoadTime']) enables this report.

Wednesday, January 12, 2011

Windows 2008 R2 as a Virtual Server in Sun Virtual Box

Recently I am trying to setup Windows 2008 R2 as a Virtual Server using Sun Virtual Box on a Sony VAIO machine running Windows-7 64 bit version.

When ever I start the Virtual Server its keep on throwing an error as shown below:

"VT-x/AMD-V hardware acceleration has been enabled, but is not operational. You 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.

Please ensure that you have enabled vt-x/AMD-V properly in the BIOS of your host computer."

Then I restarted my machine and went into BIOS setting. Within the BIOS setting goto Intel Virtualization Technology (2nd Tab in BIOS setting), by default it is disable. We have to enable for this setting for making Virtualization to work.

I am using Sony VAIO model number PCG-71312L.

Tuesday, January 4, 2011

Silverlight 4 Training

Silverlight 4 training is available for download from Microsoft download site.

This training contains lots of Videos, Hands on labs which helps us to build the business applications.