Saturday, July 29, 2006

Server Load Balancing with Urchin

Urchin Software Question and Answer:
Do I need a Load Balancing Module?

We often get questions concerning Urchin Load balancing module. Many customers are unsure if they actually need a load balancing module. The Load Balancing Module simply provides you with the ability to add another log source to your profiles, rather than being limited to only 1 log source per profile. It also allows Urchin to correlate visitors that may have hit more than 1 server in the server farm during their visit.

For example, if your site is load-balanced over 3 servers, you would need the Urchin 5 base product plus two load balancing modules.

We have heard of people concatinating log files into a single file and then having Urchin process that single file. The results have been mixed.


Wednesday, May 3, 2006

Custom Segmentation With Urchin 5

Custom segmentation is a powerful analytics technique that can provide you with valuable information about your site visitors. Google Analytics, and most popular analytics packages, provides some type of custom segmentation functionality. Unfortunately, Urchin 5 software does not allow you to segment your traffic based on a custom value. This has always bothered me. I know Urchin 5 architecture will support custom segmentation, so why they didn't include it?

During the past few days I've tried to implement custom segmentation functionality in Urchin 5. I've been using the custom reports architecture to create a number of reports that show visitation statistics based on custom segments. Overall, the implementation is quite good. You don't get the neat cross segmentation functionality available in Google Analytics, but you can identify which custom segments are visiting your site most, what they're looking at and their click paths. I should mention that you need a thorough understanding of Urchin 5's custom reporting functionality to make this work.

Here's a quick overview of how you can implement custom segmentation in Urchin 5:

1. The most recent version of __utm.js script contains the __utmSetVar() function. Use this function in your web pages to set a cookie that puts a site visitor in a custom segment. Instruction for using __utmSetVar() can be found on the Google Analytics Help Site.

2. Create a custom log format for your web server log file. The format should contain cookies. Within your custom log format create a custom field that holds the value of the __utmv cookie. This is an important step. The custom field will be used to create custom data maps in the next step.

3. Create a custom report utilizing the field that contains the custom segment value.

I know this is probably confusing to most people. But if you know how to customize Urchin 5 you should be able to do this. We continue to test this on our internal intranet.

Thoughts?