最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

html - How do you find the number of users that have disabled JavaScript in the browser? - Stack Overflow

matteradmin2PV0评论

I want to get a count of number of user has disable javascript in browser. as google analytics code run on JS so i am not getting any count of nonJS user

Is there any tool or any site ?

I want to get a count of number of user has disable javascript in browser. as google analytics code run on JS so i am not getting any count of nonJS user

Is there any tool or any site ?

Share Improve this question edited Jan 23, 2012 at 16:03 Simon Sarris 64k13 gold badges149 silver badges174 bronze badges asked Jan 23, 2012 at 16:01 mikulmikul 5366 silver badges14 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

You can install something server-side to see how many unique visitors you are serving to.

Then you pare this number to the Google Analytics numbers to see how many of them have JavaScript disabled.

Have a look at Yahoo's How many users have JavaScript disabled?, which documents a methodology.

Basically you can have a <noscript> tag, and some kind of counter in that tag (e.g. an image, or better an online non-JavaScript counter service). It will only be loaded (accessed) for the browsers which are not running browsers. However counting the image hits (in your access log) will give you hits with JS disabled, rather than unique visitors—if you use an online non-JavaScript counter service, this is likely to give you unique visitors.

Google provides solutions for: PHP, JSP, ASP.NET, and Perl. https://developers.google./analytics/devguides/collection/other/mobileWebsites

All solutions generate <img> tag.
Source code is provided, so you can port to any other language.

Post a comment

comment list (0)

  1. No comments so far