back | forward 
The Site Statistics program allows tracking your site statistics so that nobody but you will have access to it. The statistics files, created by the program will be placed on your FTP server and will be totally inaccessible to ordinary users of your site, unlike ordinary counters, statistics from which can be viewed by anybody. The Script Generator module allows generating and uploading PHP counter to your server and generating the JavaScript counter, which then should be placed on all pages that you would like to get statistics for. The counter consists of the following components:
- PHP server counter, which is placed on your FTP server. The server should support PHP version 4.03 or higher and the extension .gd should be enabled. The counter has filename cnt.php and it is recommended that the separate folder should be created for it.
- JavaScript counter, which is placed on the pages that should be counted. JS counter in its turn consists of JavaScript code placed on pages and a picture, placed in the same directory, where the PHP counter is placed and triggers it when the user requests a page. JavaScript counter places a cookie on the user's computer, which serves as a unique user ID and helps identify his subsequent visits and paths through site even though the user comes from dynamic IP addresses.
The PHP counter creates its own log file format, which can be parsed and analyzed by the Log Statistics module. This log file can be used as an alternative to your server log files, since no server log file can provide you the following information:
- Track users, working through a proxy server. Proxy servers allow multiple users have the same IP address. The Site Statistics counter can discriminate between different users working through a proxy server, and even different users on the same computer (provided each of them is logged in under his own username)
- Detect browser JavaScript support
- Detect browser Macromedia Flash support
- Detect the primary language of user browser
- Detect computer screen resolution
- Detect Java support
To correctly configure and upload the counter do the following operations:
Select JS Type. Select the types of JavaScipt counter, which then will be placed on your pages:
- Simple, without Flash detection. The piece of code to be placed on your pages will be a little smaller, but it will not detect the browser Flash support. If your site does not contain Flash elements, you can select this type of counter.
- Advanced, with Flash detection. If your site contains elements, built on Macromedia Flash technology, you can select this type of counter to be installed on your pages. In that case the code will be a bit bigger, but you will be informed on the number of users, not seeing your Flash objects.
Select image. Select the image, which will be used as the counter on your pages.
If you don't want visitors to see your site statistics on the counter image, select Do not show statistics on image check box. Otherwise the counter image will display your current site statistics information:
- Hits today - the number of requested pages today
- Hits all - the total number of requested pages starting from the time the counter was installed
- Users today - the number of unique users today
- Users all - the total number of users starting from the time the counter was installed
Path to the script on server. Specify the full URL of the folder on your site where the PHP counter will be uploaded. Be careful: if you provide the wrong address, the counter will not function. Once you have specified the path to the counter you can generate the JavaScript to be placed on your pages. Click Generate and in the window on the right the correct JavaScript code will be displayed. You can save this piece of code to the file by clicking Save button. To copy the code to the clipboard click Copy. To save the code to a separate file click Save As and select the filename and location.
We recommend creating a separate folder on server for PHP counter and statistic files.
Uploading PHP counter. You can upload the PHP counter directly to your server using the program built-in FTP uploader module. Provide the following FTP connection information:
- FTP host - the address of your FTP server
- FTP port - the port of your FTP server
- Username - enter your FTP server username if your server requires authentication
- Password - enter your FTP password if your server requires authentication
- Passive Mode - select if you want to use passive FTP connection
Click Connect to establish FTP connection with your server. In the left window of the FTP module the program will display the folders on your site, in the right - the contents of these folders. Double click the folder icon to open the folder. It is recommended that you should create a separate folder for your counter. Click Upload - the program will automatically generate and upload both the PHP counter file and graphical counter file to the selected in the left window folder. The counter will be saved under the filename cnt.php. The counter should be placed in the folder, specified in the Path to the script on server field, otherwise it will not function.
Note: PHP counter can be run only on servers, supporting PHP. See glossary definition for PHP.
Now place the JavaScript code on the pages of your site and the counter will start functioning.
back | forward  |