PDA

View Full Version : Current Page in Visitor Report


rpungin
03-01-2004, 02:10 PM
Hi. I just signed up with StatCounter yesterday and I love the visitor report. I think it's the best compared to any other site statistics service that I have used. I like that all information about a page load is in one place.

There is one change that I would like to recommend. Currently the title of the current page is being recorded, but if the title is not set, the current page field is blank. What would be great is that if the title is not set, the URL of the page is recorded instead. The change seems to be quite simple, something like:
var current_page = document.title;
if (current_page == "") {
current_page = document.location.href;
}

I know it's a good practice to give titles to all pages, but unfortunately in my case I can't because I am using a third party blog service for my website and they currently do not allow setting separate titles for all pages.

Raphael