КАК ПОДКЛЮЧИТЬ

Special connection is needed to deal with your web site statistics:
1. to show all languages visitors was exploring your site,
2. to see all chapters with names, which is used on web site not by using web addresses (links).
It will make your statistic more complete and viewable.
How to set up special connection?
Put two variables for this purpose:
In to variable _pagename you should put current chapter, but into variable _clientlang put current opened page language. For the proper showing of records by statistics is necessary:
- to convert the name of chapter and current language in UTF-8 encoding,
if site is using UTF-8 encoding already that is not needed!
- to use address encoding of rows for both variables.
You should use 2 functions if your site is written in the language of PHP:
iconv ( string in_charset, string out_charset, string str ) - http://lv.php.net/manual/ru/function.iconv.php
and
urlencode ( string str ) - http://lv.php.net/manual/ru/function.urlencode.php
Sample – of the special connection of web site www.kvartirka.lv:
<?
// variable $_code current site encoding
$_code = 'windows-1251';
// Variable $_stat_division current opened chapter in site encoding
$_stat_division = 'Наши предложения';
// Variable $langs current opened chapter language in site encoding
$langs = 'ru';
$_stat_division = iconv($_code, “utf-8”, $_stat_division);
$langs = iconv($_code, “utf-8”, $langs);
// Now $_stat_division current opened chapter is in UTF-8 encoding
// Now $langs current opened chapter language is in UTF-8 encoding
/*
*
* After follows the code of WebStatistics
* Put attention how are displayed $_stat_division and $langs
* For both variables is used PHP urlencode function
*
*/
?>
<!-- NOTETREND CODE START -->
<script type="text/javascript">
var _clientId = 3;
var _pagename;
var _clientlang;
var _clientindex = new Array();
_clientindex[0] = 'kvartirka.lv';
_pagename = '<? echo urlencode($_stat_division); ?>';
_clientlang = '<? echo urlencode($langs); ?>';
</script>
<script type="text/javascript" src="http://www.webstatistika.lv/nt/nt.js"></script>
<iframe name="_ntFrame" style="border: 0px" src="http://www.webstatistika.lv/nt/frame.php?cid=3" width="1" height="1" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0" scrolling="0"></iframe>
<!-- NOTETREND CODE END -->