Tuesday, 21 July 2009

HTML: optgroup

Grouping drop down items together:


Wednesday, 8 July 2009

SEO: Google analytics workaround for non-FQDN sites

we've setup google analytics on our external facing internet site and its been running great for the past year.
But now, we're looking at employing the same solution to our intranet.
Reading the FAQ on google, states that analytics requires two things for it to work correctly.

First, your internal network needs to be able to access certain resource files located on google's server.
Secondly, the site needs to have a FQDN (Fully Qualified Domain Name).

My problem is our intranet doesn't have an FQDN.
Read a few posts that there is a simple workaround for this.

First, copy the google tracking code and add it to a page on a site that does have a FQDN.

Add the _setDomainName property to the code, just beneath the variable declaration for pageTracker.
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._setDomainName("none");

Change your settings in analytics to point to the location of the temporary site.
Confirm tracking code is working and leave it overnight to collect stats.

Once a day's worth of stats have been collected, you can remove the tracking code on your temporary site and append the code to your intranet site.

Analytics will continue tracking your site as if nothing has changed =)

Thursday, 2 July 2009

VS2003: Change or Move location of VSwebcache folder

The cache is usually located at :-

C:\Documents and Settings\username\VSWebCache
.

The path can be changed but only via the windows registry :-

HKCU\Software\Microsoft\VisualStudio\7.1\WebProject\OfflineCacheDir
.