Get Visitors Stay a Little Longer on your Website

Written by Amit Agarwal on Jul 21, 2012

As a website owner, you not only want to attract more visitors to your website but you would also like them to stay a little longer while they are on your site.

Let me share two experiments in this direction that seem to be working out well for my blog. These require no programming and can be used on any website /blog as long as you have the freedom to add a couple of lines of JavaScript to your template.

1. Facebook Recommendations

Ever since I added a Facebook widget to my blog’s sidebar, I have noticed that the average time spent by a visitor on this site has increased.

That makes sense because this unique widget lists your blog’s most recent articles in a unique order of “social popularity” and people do like to check out content that their friends and others may have liked.

Facebook offers two types of widgets – recommendations and recent activity. You can put them both on the same page and rotate (similar to split-testing). The code for that looks something like this – remember to replace with the domain of your website.

<span style="color: #606060;"> 1:</span> &lt;script type=<span style="color: #006080;">"text/javascript"</span>&gt;
<span style="color: #606060;"> 2:</span> <span style="color: #0000ff;">var</span> fb = Math.random();
<span style="color: #606060;"> 3:</span> <span style="color: #0000ff;">if</span> (fb &lt; .5){
<span style="color: #606060;"> 4:</span>  document.write(<span style="color: #006080;">'&lt;iframe src=";amp;width=300&amp;amp;height=300&amp;amp;header=false&amp;amp;colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:300px;" allowTransparency="true"&gt;&lt;/iframe&gt;'</span>);
<span style="color: #606060;"> 5:</span> } <span style="color: #0000ff;">else</span> {
<span style="color: #606060;"> 6:</span>  document.write(<span style="color: #006080;">'&lt;iframe src=";amp;width=300&amp;amp;height=300&amp;amp;header=false&amp;amp;colorscheme=light&amp;amp;recommendations=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:300px;" allowTransparency="true"&gt;&lt;/iframe&gt;'</span>); 
<span style="color: #606060;"> 7:</span> } 
<span style="color: #606060;"> 8:</span> &lt;/script&gt;

2. Twitter Favorites

Most websites now embed a Twitter widget that either displays the most recent tweets of the website owner or the conversations (aka @replies) that he or she is currently having with others on Twitter.

I also use the Twitter widget on my blog homepage but in a slightly different manner. Whenever there’s a tweet that mentions one of my blog stories I add that tweet to my Twitter favorites. These recommendations then automatically appear on the site through the faves widget of Twitter.

The big advantage with Twitter’s widget is that you get to easily promote even your older content which otherwise stays hidden in the archives and may never get noticed by new visitors.

Also see: Discover the Most Popular Links on a Page

Document Studio

Generate beautiful and pixel-perfect documents in PDF, Word, Excel or PowerPoint.

Download New
Mail Merge

Send personalized emails from Gmail, include unique attachments, track opens and more.

Download Popular
Save Emails

Download email messages and file attachments from Gmail to your Google Drive.

Download Popular

Subscribe to our Email Newsletter