Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I know that I can get OS and\or browser settings types from the IIS logs, but is there a way to also see if a user has JavaScript disabled? I am looking for a to determine how many of our users are not running JavaScript.

Thanks, ZK

share|improve this question

3 Answers 3

The IIS logs won't keep that information, but you can use a solution like Google Analytics which is able to obtain that information and more. It's free and great for finding out client-side information like that.

share|improve this answer
    
I guess I could use Google Analytics to get a count of visitors with JavaScript enabled (as the free version requires a JavaScript file to run), and then use the IIS logs to get the full list of visitors and subtract the GA number. I was hoping for a better more automated solution. –  zk. Dec 28 '10 at 15:18
    
The problem is that the Javascript info isn't included in the HTTP Headers, so it's not available to IIS when it logs the data. It will require some sort of javascript on the page itself to determine weather or not it's supported. You could write your own js add-on and have it make a call to another logging page on your server and append the information in the querystring. That will be similar to Google Analytics but allow you to use your own IIS logs to collect the data. Google Analytics is probably easier. –  Scott Forsyth - MVP Dec 29 '10 at 15:22

A half useful method would be to write two cookies, one in a page header and another with Javascript, if they both are sent back to the server then JS is enabled, if neither exists then cookies are disabled.

I'm guessing that IIS is like Apache in as much that it can log cookies.

share|improve this answer
up vote 1 down vote accepted

As this was a secured site and also had a limited number of users, I ended up just saving this info in a user table on the data base.

I set a variable "JSEnabled" to false, and using JavaScript set it to true on log in.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.