Saturday, 8 December 2007

Malacious help on Linux - and how to avoid it!

Today, I read this intriguing article on dangerous or malacious code on Ubuntu. The article was quite an revealeation in terms of how someone can ensure that your life with Linux is destroyed!

The post talks about some really malacious commands that were provided as solution to questions on various Ubuntu formums. They were cleaverly disguised as simple steps for solviing dialy computing issue while the ulterrior motive was to simple make life miserable for the poor hapless soul using the forum to seek solutions. The post makes you aware of the danger of seeking online help from unknown entities. Although the help on forms are not as bad as getting infected by virus, it dows play upon one main problem - the issue of trust.

Linux/Unix traditionally has been developed from communities and an open forums. Since no formal service agreements generally exist, help is often sought and obtained from communities. If the some malacious users of the very same communities turn against the users then, it does tend to become an issue. Of course, it is wrong to blame the entire community for a few malacious users but, it does suggest one problem of the Open Source model. The issue being raised is, on an average, you get good solutions but, never trust everyone. An implying issue is - how do you know whom to trust and whom not to.

As the very same post mentions, a simple solution is a wait-and-watch approach - wait for sometime to see anyone else responds with similar help of raises concerns before jumping onto to make the change. Other solutions could be:
1. Wait for some posts to appear on reputed blogs - at least a person who maintains a long time, well visited blog will not post malacious help
2. Try and get help from Linux documentation project () or the web site of your distribution - be it Red Hat, Ubuntu, etc. These guys generally maintain the forums to ensure malacious intent is not spread.
3. Post queries on multiple places and then see if you get similar responses. If something looks suspisiously different, raise a flag.

Of course all of this is time consuming but, being safe is better than losing the entire hard-drive! Maybe this is where an idea can be taken out of Microsoft's MSDN community. If something can be created like this, a really trust-worthy site could be developed where users can be relatively well assured of getting decent help.

Reference:
Ubuntu - Global Announcement: http://ubuntuforums.org/announcement.php?a=54

Why resourcing is difficult for Web Analytics?

Lately, I had to take sessions on Web Analytics to multiple user groups. The types of questions that were asked and the focus from the groups opened my eyes on a problem that we'd never realized till now - identifying the right ‘fit' of people for Web Analytics.

Come to think of it: When you have a Java project, you look for a Java resource. When you have a .Net one - you get a .Net person. But, when you have a Web Analytics implementation project, what do you do? The straight forward answer is - get a person who knows Web Analytics analytics. The question is, what is meant by *knowing* Web Analytics?

Web Analytics - Congruence of Technology and Business
The main problem in narrowing on Web Analytics skill set is that it is inherently different from the traditional technologies or Verticals. To implement an analytics solution, say for a client like Amazon.com, understanding of just Amazon's business model would not be enought. On the other hand, understanding of just the Web Analytics solution is also not enough. A knowledge of any tool will just provide details on how the tool by itself works.

To actually understand and work with Web Analytics, we'd ideally a need a candidate who is:

  1. Good with one of the Web Analytics tools
  2. Has a business tilt of mind, especially in identifying what things if measured add value to a client

The second point is nothing but an ability to uniquely identify the KPIs for the client's business being driven out of the Web Site. The KPIs could be anything from number of people buying a book (Amazon) or number of people signing up for download of a new White Paper (Lead Generation by News Distribution Sites). A person who can match the tools provided by the Analytics vendor with the measurement requirements of the customer is what we should be looking for.

Current issues
The issue we have now with Cognizant is that we have three different sets of people none of whom are really fitting into the role. We have:

  1. Developers who are completely focused on the web analytics tool itself - the way it works and the parmaters it provides
  2. Business Analysts who know the client's business but, are unaware on what the Analytics tools can and cannot do
  3. Architects who lose themselves into the intrcacies of implementation of the tool itself rather than providing customer solutions

(I was bombarded by implementation of Omniture Web Analytics product by architects in one of the session when the session was all about how to use the tool!)

So, the problem that I foresee is that we have people who have a view on just one aspect of the solution and none of whom are able to envisage the complete analytics package providing value to customer. This is the need of the hour and something that needs to be addressed

My Suggestion
To help overcome this issue, my suggestion would be:

  1. Train a batch of freshers and BAs on the Web Analytics products - focus on what the tool can do initially. Then, train the freshers on the implementation aspects.
  2. Try and identify people who envisage solutions and train them on designing Analytics solution. Ideally, these are the hands-on exprienced associates - people who have ideally had a stint at onsite and are in the position of tech lead for the projects. The reason for this category of people is two-fold:
    1. They have seen how customers think and understand how to think along the lines of customer
    2. They are sufficiently hands-on and know what is the problem being solved rather than diluting the problem definition.

Well, I've not got a batch to train as of now in Bangalore but, I do hope to get this type of group whom I can build for future projects!

Sunday, 4 November 2007

How to design website to be web analytics friendly?

-Akshay Ranganath

Last week, we received a few requests for implementing Analytics code on over 1000 pages of a client web site. It was while breaking our heads over the sheer amount of mundane task that we realized on the potential of making this process a lot more easier.

Background
Now a days, almost everyone wants to have analytics code implemented on their site. Given that Google is offering it totally for free, who would not want to use it?

So, first thing to do is start with the assumption that your site is going to have an analytics implementation at some point of time. If you see various products out there, the basic things of most products are:


  1. a small javascript code asking for insertion of a vendor provided script. This will be s_code.js for Omniture SiteCatalyst. For Google Analytics, the file will be urchin.js

  2. another piece or a same piece of code that follows this initial include line for capturing the variable that needs to be reported on. For this purpose, you have multiple option, depending on the product being used:

    1. Omniture SiteCatalyst: Use the custom variables

    2. Google Analytics: I am yet to learn this!




I am assuming that you want to implement a basic analytics solution on the web site. This is the case of most people. (I know it is a generalization but, since this industry is in a nascent stage, there is a lot of information that can be gleaned even with this level of implementation).


To help accommodate this, the pages of the web site should have two important features:

  1. A include line at the top of the file, just after the <body> tag. This line in turn can insert the necessary JavaScript code needed for Google Analytis or Omniture SiteCatalyst.

  2. A shorter code snippet for pulling in the various custom parameters.



To explain this concept, I'll use the example of Omniture SiteCatalyst. Suppose, you have a news publishing website and you need to measure the following:
1.Page name – s.pagename
2.Section Name – s.channel
3.Headline, if applicable – s.prop1
4.Name of author, if applicable – s.prop2
(Paramters after '-' are the Omniture SiteCatalyst variable)

What I would suggest is a simple implementation of placing the necessary information in a DOM accessible format on the rendered page. So, for example, if the details could be designed as follows:
1.<title></title> can contain the correct page name
2.rest of the details could be put in <div></div> tags
So, my final rendered page had the details in a format like:

<div id='section'>Latest news: Sports</div>
<div id='headline'>Man U win Championship Leage – yet again!</div>
<div id='author'>John Brown</div>

Then, we could write a generic JavaScript to pull in the values. The possible pseudo-code would look like:

function getArticleName(article) {
if article requested is 'Section' then {
check if element called section exists
[document.getElementById('section')]
if yes, then return this value
}
}

The final page for could be rendered in a very generic format:

s.pagename = document.title
s.channel = getParameterName('section');
s.prop1 = getParameterName('headline');
s.prop2 = getParameterName('author');

and so on..

Since this is a generic function, it can be easily added in all pages as it is. To ensure the correct usage, it would be a good idea to insert this code just before the tag.

Implementation example
Suppose you are using .Net then the master page concepts fits nicely into the scheme of things. Add the line for including the Javascript (s_code.js or urchin.js) in the master page.

Then, include this master page in all your ASPX pages. And that's should get you a foundation.

Then, design a short javascript having the four lines mentioned about and include it in all your pages just before the end of body tag. As a worst case, the javascript could be empty and do nothing. Still, the pain of updating each page in future is resolved.

The other option could be to use a master footer page. This option would make life a lot more simple.

Conclusion
So, you see implementation of analytics, at least the basic one can be made a lot more easy and painless with a few bit of code designed into your system. Trying to do this after everything is done could be a bit of a pain and unnecessary wastage of effort.

Friday, 2 November 2007

7 Web Analytics Sins - White Paper by ClickTracks

-Akshay Ranganath


Read this nice article on the 7 Web Analytics Sins from ClickTrack. The 7 sins are:

Sin #1: Simple Visitor Counts
Learn the factors that can potentially skew visitor data.


Sin #2: Search Term Popularity
Understand why marketers must concentrate on the quality of visitors a keyword delivers, rather than the quantity.

Sin #3: The Linear Funnel
Learn the reasons why traditional sales funnels can lead to dangerous assumptions.

Sin #4: Data Overload
Know why it’s important to be able to separate interesting information from actionable information.

Sin #5: Relying on Absolute Number
Understand the reason why it’s more important to concentrate on trends instead of absolute numbers.

Sin #6: Relying on Top 10 Lists
Learn how getting stuck in your top 10 referrers can cost you long tail opportunities.

Sin# 7: Technicolor Report
Understand the reason why the way that information is displayed can have a huge impact on ease of use and perception.

For more information visit ClickTracks White paper at http://www.clicktracks.com/downloads/7-web-analytics-sins.pdf

Monday, 29 October 2007

Case Study - How to analyze a Web Analytics Report?

Akshay Ranganath



What to see in your Analytics Report?

Once you have for the Analytics Code onto the site, what do you start to measure? Here’s a short article on it with Google Analytics and a Blog on Ubuntu Linux as an example.

The site used for recording is our own groupMAGNET blog, http://groupmagnet.blogspot.com/.

Reports from Dashboard

Visitor Count

The very first report on the site reports on the number of visits to the web site. (See article on definition of Visit).

So, in the above screen shot, on the 16th of October, I received 89 visitors to my website. For the range from Sep 28th to Oct 28th, this is the highest number. For the period of I’ve also got 213 pageviews.

The question that should come in to mind now is: Why such a sudden surge?

Content Analysis

When I see that that on October 16th there were so many visitors, I checked the Top content report. It showed something like this:

This page shows that for the 213 page views, 128 were received from just one page. This page is having a URL ending in “3-Months after Ubuntu”. So, this is the page that has created such a huge surge in the page.

Since I know that most people landed here, I want to now know if they actually found the page useful. To verify this, I invoke the report for the specific page by clicking on the first URL shown in the sceen shot above. This results in a page of the following format:

So, this page is telling me that:

  • On an average, people read this page for 3:32 minutes. This is a very good time considering that the article is really small.

  • But, it also tells me that 99.21% of the users bounced. This means that after reading this article, the visitor to my site navigated to some other web site. This means:


    • I am offering something that is of use to a lot of readers (the huge number of views) BUT

    • My site is not offering a range of solutions to keep the users hooked on.

Hence, if I were to run huge ad campaigns, etc for some other customers, it could not be a big advantage.

The next question that comes to mind is: How did people land on my site?

How do people reach the site?

To answer this question, go back to the first page – the Dashboard and look at the following report (TrafficSources Overview):

This simple report has the details that shows the mechanism by which people are landing on my site.

So, it says that the most number of users landed on my blog via Referring Sites. A referring site is any site that has a link to this blog. (Sites like Google, etc are treated as a special case and reported in the Search Engines).

Hence, my web site is famous not because a lot of people reached through Google Search but, some particularly important source is referring to my site. Who is this site? To see this detail, click on the view report link.

Here the details shows that the top traffic sources are Ububtuhq.com and Digg.com sites.

Conclusion

From the above discussion, we see that the article “3-months after Ubuntu” has drawn a lot of viewers from the sites digg.com and ubuntuhq.com. Knowing the history of what had happened, I can now conclude that:

  • Digg.com and UbuntuHq.com attract good quality viewers for topics related to Ubuntu Linux

  • These sites (digg.com and ubuntuhq.com) also have ability to target users who are specifically interested in a particular topic (Ubuntu Linux)

  • If I have anything to say on Ubuntu, it is probably a good idea to link the article from digg.com and ubuntuhq.com since it gives me viewers who are actually reading my material. (Coupled with the fact that I got around 10 comments, it also means that they actually read the contents and try to understand it too!)

PS: Google Analytics is a free tool. Anyone with a Gmail Id can get the necessary Javascript code for implementing Google Analytics.