Bitrix Site Manager

Installation

The following operations are required to install the module.
  1. Click the Install button of the statistics module on the Modules page.
  2. Provide the initial information:
    Parameter Description
    Recreate IP-to-country index Implies recreating the IP address database index.

    Note
    The IP address database contains over 60.000 records. Therefore, recreation of index will take some time. If your site is heavily loaded at the installation time, you are recommended to uncheck this option and re-index the database later using the Statistics module settings page.

    Hits counter initial value If you are integrating the statistics module into a working site with some statistics available, you can set the initial value for the hit counter. Among other things, this value will be used when displaying the statistics summary table in the public section (if you have chosen to display it).

    Note
    This option is available if the database does not contain tables of the Statistics module.

    Hosts counter initial value Same as above but specifies the initial value for the host counter.

    Note
    This option is available if the database does not contain tables of the Statistics module.

    Visitors counter initial value Same as above but specifies the initial value for the visitor counter.

    Note
    This option is available if the database does not contain tables of the Statistics module.

  3. After you click the Install button, the module tables will be created in the database and the required scripts copied.
  4. If you are connecting the module to a site that functions without the Bitrix Site Manager (e.g. when installing the Web Analytics edition), to collect the statistical information you have to include the following code to all the required files:
    • to the start of a page  :
      
      <?
      require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/include_statistics_before.php");
      ?>
    • to the end of a page:
      
      <?
      require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/include_statistics_after.php");
      ?>