Site Stickiness of a Page

Every web page has links. Some links point within the site and some links are external.
The ratio of internal:total links in a page, is a measure that can tell the probability of the user to stick, to the site or to go to another site. Let us call this as site stickiness of a page.

Site Stickiness=(internal links/total links{internal+external})*100

This is the probable percentage that a user will stick to your site.
Inorder to get this measure, use the following javascript code.



var intern=0,extern=0;
for(i=0;i<document.links.length;i++){

if(!(document.links[i].href.toString()).match(document.location.toString().split('/')[2])){
    extern++;
}else{
    intern++;
}
}

var sticky=((intern/(intern+extern))*100);
console.log(sticky);
alert(sticky);


Comments

Popular posts from this blog

How to get started with Vue in under a minute?

aigiri nandini - Brodha V you rock