How to put the hit counter in wordpress

How to put the hit counter in wordpress

Hit counters for the websites allow to keep statistics of attendance for different periods: day, week and entire period of existence of a resource. Also they can collect information on on what search queries visitors come. It is possible to install the counter on any website including created on WordPress management system.

The code of the counter in the WordPress system is set in files of a template. It is the best of all to arrange it below or in a side bar of the website. If you want the counter to be located from below, then its code needs to be inserted into the footer.php file and if to install it in a side bar, then the code is inserted into the sidebar.php file or into widgets (at their existence in a website template).

 

How to find the footer.php and sidebar.php files?

 

These are files of a template. That to find them, it is necessary to come into the control panel (console) under the login of the site administrator. In the control panel there is a menu, it is normal it is located on the left side. It is required to find the Appearance tab in the menu and to deploy it, having clicked with a mouse. In the open menu it is necessary to come on the Editor tab. Before you the list of all files of a template, editable will open. In this list there are files of footer.php (basement) and sidebar.php (side column).

 

It is also possible to use widgets, for this purpose it is necessary to open the Appearance tab in the control panel, to find the Widgets point in it and from the side block "Available Widgets" to drag a mouse a free widget with the inscription "Any Text or HTML-code" on the block with the inscription "Sidebar". Then the counter will be located in a side bar with widgets.

Where to insert the code of the counter



To install the counter in the footer.php or sidebar.php files, it is not necessary to understand how the WordPress templates are arranged and also to know the PHP programming language and html. It is enough to find the opening tag in the file of a template and after it to insert the code of the counter. In WordPress this tag can look so>, and the code of the counter should be inserted after this tag from a new line.

It is desirable to close the code of the counter from indexation by search engines. For this purpose it is necessary to issue it as follows the code of the counter.

What counter select?



For WordPress it is possible to use any counter which suits you on the functionality and appearance. It can be liveinternet, Yandex metrics, Warlog, Top100 from Rambler, HotLog, Easy Counter, TOP Mail.ru, Openstat, Google Analytics, HitMeter and any other counter. All of them are installed according to one scheme, that is in the footer.php or sidebar.php files. It is possible to install several counters at the same time, then their codes the friend under the friend is the best of all to have. Some webmasters place several counters to take free space at the bottom of the page.

Author: «MirrorInfo» Dream Team


Print