Get Visitors Stay a Little Longer on your Website

Published in: Blogging - SEO

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.

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

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

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Blogging - SEO

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube