FAQ
FAQ : Miscellaneous
How does the algorithm that detects the visitor's country work?
First, phpMyVisites looks at the hostname extension of the Internet Access Provider. For example, extension for "wanadoo.fr" is "fr". If the hostname extension is a country extension, the visitors country is the country of the extension. If the hostname extension is "net", "com" or "org", PhPMyVisits looks at the Web Browser language! If the Web Browser language is "fr-XX" or "en-XX", phpMyVisites looks at XX. If not, phpMyVisites considers the Web Browser language as the visitors country.
This algorithm is not free of errors of judgment, but these errors are negligible (maximum error rate is 5% over a meaningful period of time)
Besides, this method is fast, simple and easy to implement (no database to maintain, no disk space required). That is not the case of methods that analyze IP address tables sorted by countries.
For more information, see function getCountry in the file core/include/Log.functions.php
Back to FAQ