CNStats 3.2 Manual
Counter Types
3 types of counter are available in the application:
- "GIF 1x1"
- "PHP-Include"
- "Combined" ("PHP-Include" + "GIF1x1") - recommended.
Counter type is assigned with the help of $COUNTER["type"] parameter in config.php.
You should select the type that suits your needs best and install the suggested code into all pages of your web-site. Be careful and do not edit the code suggested by the system.
Note: It is possible to insert only one type of code on a single page.
Counter Type |
Display Mode |
Unique Users |
Advantages and Disadvantages |
"GIF 1x1" |
Invisible, transparent GIF 1x1 is inserted |
Cookie is installed during first login; it expires at 23:59:59. A user is considered unique if no cookie has been installed for him/her yet. |
The counter works at any server. It does not count visits of search robots. It is necessary to select the right place for the code insertion. |
"PHP-include" |
Invisible, no additional code |
A host inactive more than 1 hour is considered unique user. |
It counts ALL visits with an absolute precision. Counter code may be inserted anywhere in the HTML code. It counts search robots. It is necessary to use additional variable (*) to transmit page titles. It works only on PHP-powered web-sites. |
"Combined" |
Invisible, transparent GIF 1x1 is inserted |
The same as GIF 1x1 |
The counter combines PHP-Include precision and correct user identification with the help of the cookie. It is necessary to select the right place for the code insertion. It works only on PHP-powered web-sites. Recommended. |
(*) It is necessary to assign the page title to the variable $CNSTATS_TITLE for page titles counting before the counter code will be installed. The title encoding should be correct; for instance windows-1251 for the Russian language.