How To Put A Counter On A Blog

Table of contents:

How To Put A Counter On A Blog
How To Put A Counter On A Blog

Video: How To Put A Counter On A Blog

Video: How To Put A Counter On A Blog
Video: How to add Visitor Counter Widget to Blogger (2021) 2024, December
Anonim

Most of the bloggers are interested in its statistics (number of visits per day, week, month). To know the statistics of visits to your blog, you need to put a visitor counter on its pages.

How to put a counter on a blog
How to put a counter on a blog

It is necessary

HTML-code of the counter, provided by many search engines and site directories, if your blog is on CMS, then another simple text editor (notepad)

Instructions

Step 1

First, you need to get the html code of the counter itself. This can be done on resources such as liveinternet and the like.

For example, consider installing a liveinternet counter on your blog.

You need to get the counter code itself. This can be done by following the link https://www.liveinternet.ru/code. Choose the option you like. Then (at the bottom of the page) click the "get counter html-code" button in the window that opens you will see your counter code. Copy it to your clipboard

Step 2

If you run a stend alone blog (on a CMS), then open in your CMS the file that generates the bottom of the blog pages, usually this is the footer.php file.

Find the lines of html - code (any) in it. Paste the resulting counter code on / below them. Save your changes to the file and refresh the page. See how the counter layout looks like. If you are not satisfied with it, enclose the counter code in a container and give it an identifier - for example "kod" (remember: the identifier must be in Latin characters, numbers are allowed). Then, in the style sheet (css), give it the desired location and properties.

The counter will be displayed on all blog pages.

Step 3

If you blog in blogosphere services (LiveJournal, etc.), then the counter code is inserted in the profile or style settings of the journal. For example, to insert the counter code into the sidebar of your LiveJournal, go to "journal" - "magazine style settings" - "change style" - "sidebar" and paste the copied counter code into the sidebar field. In other blogospheres, this action is performed similarly in the profile settings or blog template.

You can also write your own counter (if you are fluent in web programming languages), but before installing a self-written counter, think about what percentage of your hosting resources it will "eat". With small hosting capacities, it is wiser to install third-party counters, especially since they send data to directories and affect the positions and ratings of the blog in these directories.

Recommended: