How to put the counter on the blog

How to put the counter on the blog

Having the blog its statistics is interesting to the majority (number of visits per day, week, month). To know statistics of visit of the blog it is necessary to put the counter of visitors on its pages.

It is required to you

  • The HTML-code of the counter provided by many searchers and directories of the websites, if your blog on CMS, then still simple text the editor (notepad)

Instruction

1. First you need to receive HTML code of the counter. It can be done on such resources as liveinternet and similar it.
For an example we will consider setting the counter of liveinternet to your blog.

You need to receive the code of the counter. Having it can be done followed the link http://www.liveinternet.ru/code. Select the pleasant option. Then (at the bottom of the page) click ""get counter html-code"" in the opened window you will see the code of the counter. Copy it in a clipboard.

2. If you have stend alone the blog (on CMS), then open in the CMS file generating lower a part of pages of the blog normally it is the footer.php file.

Find in it the lines HTML - the code (any). Insert the received code of the counter on/under them. Save izmneniye in the file and refresh the page. Look how the arrangement of the counter looks. If it did not satisfy you, conclude the code of the counter in a container and give it the identifier - for example ""kod"" (you remember: the identifier should be in Latin, use of digits is allowed). Then in the stylesheet (css) give it necessary arrangement and properties.

The counter will be displayed on all pages of the blog.

3. If you have the blog in services of a blogosphere (LiveJournal and t.p), then the code of the counter is inserted in settings of a profile or style of the log. For example to insert the code of a schtchik in saydbar the LiveJournal, pass into ""log"" - "settings of style of the log" - "change style" - "sidebar" and in the field of sidebar insert the copied code of the counter. In other blogospheres this operation is performed similarly in settings of a profile or template of the blog.

Also you can write the counter (if you know web programming languages), but before installing the samopisny counter, think about what volume he will "eat" percent of resources of your hosting. At the small capacities of a hosting it is more reasonable to install third-party counters, especially they send data to directories and influence positions and the ratings of the blog in these directories.

Author: «MirrorInfo» Dream Team


Print