SHDetect is an application statistics tracker. It can be used to collect data from your users, such as application version, build number, operating system and the locale of the user’s machine. The script was written as a simple alternative to the Sparkle statistics script.
Current Version: 1.0beta “CowardlyCat”
Installation:
- Create a new database using your web hosts control panel (for instructions on how to do this please contact your web host)
- Download and unzip SHDetect.zip
- Upload the SHTracker folder to your server via FTP or your hosts control panel
- Open up http://yoursite.com/SHDetect/install.php in your browser and enter your database and user details
- Delete install.php from your server
- Make config.php unwritable (optional)
- Login to the admin panel using the username and password you set during the install
- Done
Usage:
The script is called like this: /detect.php?version=VERSION&build=BUILD&os=OS&locale=LOCALE
The information is passed via variables, for example:
version="2.0" build="1" os="10.7.2" locale="en_gb"
/detect.php?version=2.0&build=1&os=10.7.2&locale=en_gb
The script would add the following values to the database:
2.0 1 10.7.2 en_gb
If a configuration already exists, the seen will count will be updated rather than duplicating the entry
The URL could be called using curl, wget or any other method
Administration:
Open up SHDetect/admin to view your statistics
Removal:
To remove SHDetect, simply delete the SHDetect folder from your server and drop the “Data” table from your database