CoverYourASP --> Losing my visitors

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
27 active users
2150 visitors today
1909 pages today
(only part of today)
Tools I use

CoverYourASP
Copyright © 1999-2016 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

How many visitors are leaving your pages early?

Unless you have a very small web page, let's say less than 5k, it is probable that some of your visitors are moving on before your web page has even finished loading.

This may not be as bad as it initially sounds. If your site is like mine there are a lot of links to articles or features that the user may pick before the current page finishes loading. That's not really a loss. Having said that, there are some well-known points you should bear in mind when trying to get your page to load (or appear to load) quickly. I'm not going to go into detail - there are plenty of how-to HTML sites out there - but at least keep your tables small, and always specify width/height for images and tables.

This article is about how to detect those visitors "leaving early".

Initially you might be tempted to put in code like this, that counts the headers and footers viewed. The difference is the number of pages that weren't fully viewed:

// increment application variable at top of page
Application.Lock ( );
Application ( 'HeadersViewed' )++;
Application.Unlock ( );

// ...page content goes here...

// increment application variable at bottom of page
Application.Lock ( );
Application ( 'FootersViewed' )++;
Application.Unlock ( );

Part 2: But you'll be pleasantly surprised...

Featured sponsor
My favorite resources


See my source code
wherever you see this icon...

You can also download the entire site source code for FREE!


Qualify for Free Trade Magazines

Free subscriptions to industry leading publications for those who qualify!