Metric counter what. Yandex.Metrica - what kind of beast and how to tame it. Step-by-step instructions for setting up. Creating a Yandex metrics counter

Hello, dear readers of the blog site. Today we will talk about a new visible visit counter (with an informer), which over time may be able to somewhat shake the ultra-reliable position of the most popular one on this moment in RuNet. I mean the informer that Metrica recently published.

When I created my first website, I really wanted to put a counter on it from . I typed such a query into a search engine, looked through many resources, but it turned out to be just a myth, although many did not fail to make sufficient progress on this popular request. I remember that it was through him that I first came to Devaki’s blog. Very useful resource By the way, I advise you to visit.

Yandex counter - myth or reality?

But still promotion this request at that time, because such a thing did not exist in nature. Many passed him off as him. Well, starting in the fall of 2009, it was possible, almost without a twinge of conscience, to display a web analytics tool called Yandex Metrica, which, in general, was just that.

But still it was somewhat different from the popular LiveInternet, which, in addition to being quite powerful tools web analytics (probably not even analytics, but still statistics) had an informer visible to site visitors, where it would be possible, if desired, to configure the display of traffic data in any form convenient for the webmaster.

This is exactly the kind of informer that Metrica lacked so that it could absolutely be called a counter. But this was relevant only until recently, and now we can talk about it publicly, because this system acquired a visible part that allows you to display information about the traffic of this resource on the site pages.

When setting up the informer, you can choose one of these three options for displaying it on the site, as well as configure color scheme and what exactly should be displayed in it. For a start, I think it's good. I am especially impressed by the second option, which displays site traffic by day of the week in the form of a step chart - very original.

By the way, you can configure it so that when you click on the informer, a drop-down window appears with statistics for the previous week:

In general, Metrica attracts with its clarity, beauty and other web two-zero (WEb 2.0), especially against the backdrop of LiveInternet, which in terms of the presentation of information and the clarity of its presentation is still a bit of the past, although, of course, the information it provides is very important in some cases is unique.

Let's hope that, finally, LI will have a worthy competitor in the person of Metrica and its visible counter visits, because competition is always good for end user, i.e. for you and me, dear webmasters.

By the way, this system can be called a web analytics tool, because it has the ability to set goals and track certain events (for example, the transition to specific page, completing registration, following certain links, etc.).

In RuNet, the most popular tool for web analytics is still Google Analytics, which is quite sophisticated and seriously surpasses Yandex Metrica in capabilities.

But the question is that in RuNet at the moment web analytics is in its infancy, unlike the bourgeois web (which, according to some data, is about 5 years ahead of the development of our SEO), where similar systems have become one of the most popular tools for website promotion.

In RuNet, Google Analytics is considered the coolest, but in the burzhunet it is used only by novice optimizers. They quite often use professional paid software to analyze the progress of projects. Well, we are lagging behind the bourgeoisie and there is nothing we can do about it. Therefore, Metrica’s web analytics capabilities will be sufficient for us in most cases.

In addition, the brainchild of the RuNet mirror has such unique tools as Webvisor, a map of links or clicks:

Well, now let's move on from singing the praises of Yandex and its new counter (something in Lately I’m promoting their services too much) directly to how to get all this beauty on your website.

How to register and set up Yandex informer

Let me remind you that if you make money on your website by displaying ads from the Yandex advertising network (YAN), then along with the context block code, the Metrica code will also be loaded. Those. Consider that you are already registered in this system, and in order to make sure of this, you can click on the corresponding link on the statistics page of your advertising platform in YAN:

Let me also remind you that if ads from YAN are not displayed on all pages of your resource, then the Yandex counter statistics will be underestimated. In this case, you will need to register and add your site to Metrica (registration actually involves receiving), and then receive and install the code on your site.

But we are more interested in the “Counter Code” tab, where, in fact, it will be possible to configure appearance and get the code. By the way, if you have a YAN context running, then you will only need to get the code for the informer, because Your counter will be loaded automatically along with contextual ads.

In general, until 2009, Metrica was available only to those who used Direct on their website, which is why there is now such a strong relationship between these two services. , is the reverse side of the YAN advertising network - advertisers advertise in Direct, and in affiliate network they are posted by webmasters. Well, this is to roughly approximate.

So, to activate the display of the informer, you will need to check the box of the same name. All settings for the appearance and functionality of the visible counter are hidden behind the “Configure informer” item.

As a result, it will open additional area, where you can choose one of three types of Yandex counter and fine-tune its appearance and the information displayed in it:

The first option will display all three possible traffic indicators at once (from top to bottom): the number of impressions of pages of the site under study for the current day, the number of visits and the number of unique visitors. In general, just everything you need.

The second option displays a color graph of attendance by day of the week and one of the three parameters described above. Which one will be displayed on the counter will depend on which field you check in: Views, Visits or Visitors.

The third option will simply display one of your chosen indicators of traffic to your resource.

I think that there is no need to talk about how you can adjust the color scheme, because everything is already clear. You need to select one of two display options and text color, and also receive more information when you click on the counter with the left mouse button (option “Advanced” - see the screenshot at the beginning of the article).

After you create your masterpiece, scroll down the window and click on the “Save” button. Now you need to copy the informer code and, if necessary, the counter code, which will be located in the lower area.

Please note that the counter code will be enclosed in opening and closing tags like:

and the informer - in tags:

Looking ahead a little, I will say that once you install the informer code on your website, you are unlikely to see anything on it, because you will still need to activate its display. This is done on the “Accesses” tab:

You need to check the box “Show informer data":

At first I thought that it would take time, after which the numbers themselves would appear in the informer. Ah, no. This checkbox is necessary and you can’t do without it.

What is the best way to install a Yandex counter on a website?

You can of course copy and paste them together. Everything will work, but it would still be better to insert the Metrica counter code into the template of your site before the closing /body tag, because in this case the frozen script will not slow down the loading of the pages of your resource.

Although lately we have been offered an asynchronous version by default, which does not affect the page loading speed in any way:

But you can install the informer in any place convenient for you, just as I described it in articles about:

I think that by using the materials above, you will be able to cope with this overwhelming task without any problems.

Yes, if you want visitors to your resource to be able to view the detailed data of your counter, you will need to go to the “Access” tab in its settings and check the “ Public access to statistics”, after which you will be provided with a link leading to a page with a statistic open to everyone:

Good luck to you! Before see you soon on the pages of the blog site

You can watch more videos by going to ");">

You might be interested

OpenStat - visit counter and rating (formerly SpyLog), installation and work with statistics
HotLog - registration in the ranking of sites and receiving a visit counter code
Rambler Top 100 - how to add your site to the rating (catalog) and get the visit counter code
OpenStat - free system collection and analysis of website traffic statistics (formerly SpyLog)
Mail.ru rating - registration in top.mail.ru, setup, receiving a counter code and visit statistics capabilities
How to install hit counters in WordPress and SMF - insertion method to improve counting accuracy

Visitor counters can be found on almost any website, and if they are not visible visually, this does not mean that they do not exist. A real webmaster and optimizer must know how many people visit his resource, what queries they follow, etc. Some even put counters in a prominent place to show off to other users (webmasters). From this article you will learn how to add a visit counter to your website, as well as how to select a counter.

1. Who needs a counter on the site and why?

An ordinary user who is far from creating websites has no idea what is considered high traffic and what is small. This means there is no point in boasting about your attendance to such users. Therefore, it is necessary to clearly understand that the counter is necessary primarily for the webmaster. And it is needed in order to track overall traffic, as well as monitor detailed statistics: what material on the site is most interesting, what is the average time spent on the site, what search queries attracted users, etc.

2. Which counter to choose

First, you need to decide which counter to install on your website. I’ll say right away that the choice of really worthwhile free meters is not great. I would definitely recommend adding a counter from liveinternet.ru to your website. This counter has great statistical abilities. For example, it allows you to track search queries (more precisely, it allowed, because now transitions from the PS have begun to be hashed), entry/exit points, the number of page views, transitions from sites, search engines etc.

Also good counters are top100.rambler.ru and metrika.yandex.ru. As a result, I propose installing four counters on the site:

You can also install Google Analytics (but I usually don’t install it).

Now I’ll tell you about the main thing: how to install a counter on a website.

3. Installation of the counter on the site 3.1. Counter from liveinternet.ru

Form for adding a site to the system: http://www.liveinternet.ru/add.

I think that it is not worth explaining how to fill out the form when adding a site, since everything is obvious here. The only thing I want to say: in the last paragraph “participation in ratings” do not forget to select a category (if, of course, you plan to participate in overall rating). Next you will be taken to a page where you will be asked to check the correctness of the entered data. If everything is correct, then click on the register button.

Once on next page Click on "get html code of the counter". You will be taken to the counter selection page:

I like the second type of counters, which show the number of views in 24 hours, the number of visitors in 24 hours and the number of visitors today. After selecting a counter, click on it and you will be taken to the color selection page.

After this, at the bottom of the page you need to select the type of counter.

I always select the very first option: “in the form of one picture” (it is the default). Next, at the very bottom of the page there will be a button “get the html code of the counter”, click on it and it will open in front of you new page with code.

The LiveInternet counter code looks something like this:

The resulting code must be inserted in the place of your html page where you want the counter to be. I advise you to place it at the very bottom of the page so as not to slow down the page loading.

I also advise you to close the counters in the tag and add the attribute to the a tag so as not to transfer link juice.

3.2. Counter from top100.rambler.ru

First you need to register in Rambler: https://id.rambler.ru/account/external-registration. After that, log in and go to the “add site” page.

Then follow the instructions. IN general meaning approximately the same as in the first case. Here you will have to fill out a little more fields than on LiveInternet. At the very end you will be asked to select the type of counter:

After this, you get the counter code and, just like in the first case, insert it in the place on the site where you want it to be displayed.

The code will look something like this:

Rambler has become very capricious when it comes to resource moderation. Only white sites are accepted here. If the site is gray, it will be rejected.

3.3. Counter from metrika.yandex.ru

To add a site to Yandex Metrica, you must be authorized on Yandex. After this, go to the page http://metrika.yandex.ru/list/ and click “add counter” at the top.

After this, you will need to fill in the appropriate fields and place the code on the site in the same way. Usually I make the metric counter invisible on the site.

After you add counters to the site, in a couple of days you can already start analyzing site statistics.

3.4. Counter from top.mail.ru

To add a site to TOP Mail, you need to register with Mail.ru. After this, go to the page https://top.mail.ru/add and enter data to add a site.

This meter has similar options for viewing a meter with LI. Those. almost the same points. In this regard, of course, Yandex Metrica is much more interesting.

The email counter is good primarily because its rating is visited by many users. From this rating there will be transitions to your site if it has quite a lot of traffic.

4. How to make the hit counter beautiful

As a bonus, I'll talk about how to make the counter more beautiful. To do this, you will need to write the following code in your CSS style sheet:

#cnt a img ( opacity :0.3 ; -moz-opacity :0.3 ; filter :alpha (opacity=40 ); -khtml-opacity : 0.3 ; ) #cnt a :hover img ( opacity :1.0 ; -moz-opacity :1.0 ; filter :alpha (opacity=100 ); -khtml-opacity : 1 ;

And in the place where you need to insert the meter codes, write the following:

Meter codes

After this, you will have counters like on this site, i.e. They are darkened, and when hovered they become bright.

From the author: Do you own a WordPress website and want to install a counter on your WordPress website? Then this article is for you. Actually, if your site is not on WordPress, but on any other engine, this article will also suit you, since the procedure for installing the counter is, in general, universal. So feel free to continue reading.

HIT COUNTER FOR WORDPRESS SITE

First, let's say a few words about what a hit counter is and why it is needed. Actually, the answer is already contained in the title itself. A visit counter is a script that counts visitors to your website. And it is necessary to generate statistics on your site.

As one of the greats said: statistics is the most important of the inexact sciences. To this you can add a few additional characteristics, for example: necessary and sometimes useful. In the case of a website, it is very necessary and quite useful. Why? The fact is that modern counters keep statistics not only of visitors, but also collect all kinds of additional information about them (useful and not so useful). For example: what country is the visitor from, what search query did the visitor come to the page from or what site did he come to you from, what devices are they viewing the site from and what browser is being used, and much more.

In general, the information provided by hit counters is needed if you are going to seriously work on your website and care about its development and promotion. It's time to decide on the counter.

WHICH HIT COUNTER SHOULD I CHOOSE?

When answering this question, there are two options. Let's say a few words about the first one. The first option is to use a WordPress plugin. There are a huge number of plugins available for WordPress that provide all kinds of statistics. Therefore, if you decide to opt for a plugin, then all you have to do is choose the one you like. For example, you can look at the following plugins: Hitsteps Ultimate Web Analytics or StatCounter.

In this article, we will not analyze working with such plugins and will focus on the second option - a third-party service that collects statistics from your site. And here I will recommend a visit counter from the LiveInternet service. Let's try to insert a counter into a WordPress website from this service.

On the new page we are asked to fill out a form, indicating the site URL and other data. If any of the form fields cause you confusion, then next to each field there is an icon with a question mark, clicking on which you will see a hint.

Fill out the form with the necessary data. After confirming that the filled-in data is correct, we will be taken to a page with a button offering to obtain the html code of the counter.

Click on it and select a counter of your choice on the page that opens. There is plenty to choose from. You can choose either a simple counter without displaying statistics, or a counter that shows all kinds of data about visits.

The default colors suggested may most likely not suit you. No problem. By clicking on the counter, we can choose its color design that fits into the design of your website. Having selected a counter, go down to the bottom of the page and click the button to receive its code. By the way, if you then change your mind and want to use a different counter option, you can always return to this page and change your choice. Let's move on. We can see the generated visit counter code in the text field.

All that remains is to copy the resulting code and add it to our website.

HOW TO INSERT A COUNTER ON A WORDPRESS SITE

Since we are primarily interested in WordPress, I will show how to insert a counter specifically into a WordPress site. But, in principle, for other engines the procedure will be approximately the same.

In the site admin panel, go to the Editor section, located in the Appearance menu. On the page that opens, we are interested in the template footer.php (Footer). Open it by clicking on the corresponding link in the Templates section on the right.

The code for this template will open in the editor. We find the closing body tag in it and paste the code of the copied visit counter in front of it.

Save the changes by clicking the Edit file button. After saving, go to the site - somewhere at the bottom of the page you should see a picture of the visitor counter for your site.

Most likely, the counter will be located in the wrong place, thereby ruining the appearance of the page, as in the screenshot above. In this situation, you can do two things. First, you can align the counter by accessing your theme's stylesheet. As an example, I'll put the counter code in a block with a counter class.

Now for the specified block we will add the simplest rule that centers the visit counter:

Counter(text-align: center;)

Counter ( text - align : center ; )

As a result, the hit counter will be centered.

It’s strange when people in Yandex.Metrica try to hide the ID number. This is often done by beginners and inexperienced webmasters who do not know that this number can be viewed by everyone. If the site has Yandex.Metrica, anyone can view the counter number!

To put it simply, there is no point in hiding identifier data, since all these things are very easily revealed if you just look into the code of the site pages. We will tell you in this step-by-step instructions that in Yandex.Metrica the counter number is publicly available information, and how to find out the number of your own counter on the website. For variety, we’ll even consider several options for how to find out the Metrica counter number in a matter of seconds.

Yandex Metrica counter number: view from profile Step No. 1

If you are registered in the system, if you can log into your own webmaster profile in Yandex (), you can find out the counter number directly on the page with a list of sites. To do this, copy the link and paste it into the address bar of your browser:

Step #2

If you go to the settings of your site on the page with a list of Yandex.Metrica web resources, the counter number will be displayed immediately in the top two lines of the “General” tab.

Yandex Metrica counter number: look on the website Step No. 1

Let's consider the easiest way to obtain this data even without access to the webmaster and administrator panels. Anyone can use this method. And for this reason, there is no point in hiding meter numbers.

If you are absolutely sure that Yandex tools are installed on the site, open any project page and look at its code. There are different ways to view the code in the browser. The easiest way is to press “Ctrl+U”

Website with Metrica: website

Website code with Metrica

Step #2

To find the required identifier in all this program code, you can use the search on the page (combination “Ctrl + F”) using the phrase “metrika” or “yaCounter” or “Ya.Metrika” or “Yandex.Metrika”. The result will be the same - you will immediately go to the counter, where you can see the Yandex.Metrica counter number.

If you do not use page search, then manually scroll through the code to the point you need. Most often, all counters and informers are located at the bottom of the pages of a web resource. The main thing is to find the required line of program code and look at the Metrica counter number. And this is very, very simple. You could do the same procedure on any other foreign sites where you are not an administrator. This information is not secret. It is available for everyone to view.

Useful information about Metrica counter number

1. Each site is assigned an individual counter number. No two are alike ().

2. Anyone can look up a site’s counter number in Yandex.Metrica, but they can’t access statistics. Unless the statistics are publicly viewable.

3. Using the ID, you will not be able to find the site itself or its owner. At the very least, it will be very difficult; you will have to search through fragments of code or content. The Yandex number itself will not help you with this.

4. The Yandex counter number is required whenever you set Yandex.Metrica Goals.

5. If you copy someone else's code and paste it onto a third-party site, it will work. The only thing is that work will stop for services that take into account the domain name (for example, Monitoring will stop working).

6. You can paste the same code on all your sites (only Monitoring will not work).

7. In order to replace one counter with another, just change the identifier in the settings. The rest can be left unchanged.

8. For a domain and subdomain, you can use 2 options: a common single identifier and 2 different identifiers.

9. The Yandex.Metrica code, which can be viewed on any website on the Internet, is capable of conveying much more information than it seems at first glance. But this is a topic for a completely different article.

Yandex Metrica is a tool for analyzing visitors to a website, including visitors who come through Direct advertising. Since any advertising campaign must be accompanied by the collection of statistics for subsequent optimization. You will also need a counter from Yandex in everyday life, because it has wide functionality and can reproduce user actions.

In today's article I will tell you in detail how to install Yandex Metrica. And as a bonus there will be a browser plugin that makes it easier, has a shortcut function, and so on. At the same time, it checks whether the code is connected correctly.

How to install Yandex Metrica on a website

Installing the Yandex counter will take you a few minutes, but before that you need to check the availability of:

  • Access to the personal part of Yandex (having an account);
  • Access to the site's source code.
  • If everything is clear with the first point, because you can always create a mailbox at this address, then for the second point you need to be able to make edits to the site. Typically, programs such as TotalCommander and FileZilla are used for this; in some cases, you can resort to editing through the admin panel of a management system, such as WordPress.

    Once you have ensured that you have the necessary access, you can proceed directly to installation. Let me note that Metrica will correctly collect data only if its script (which is available in your personal account) is on absolutely all pages of your Internet resource. I’ll tell you in detail about all the stages of connection:


    For the most complete counting of visitors, it is recommended to install the code at the very top of the site.

    Please note that some management systems have their own peculiarities when connecting Yandex Metrics, we will look at them using the example of the most popular ones in one of the following blog articles about

    Options that are included at your discretion:

    • Informer - allows you to select the display mode of the counter with an informer (a button that displays traffic statistics for the last 24 hours).
    • Hash tracking in the browser address bar - this setting is used mostly for AJAX sites (created through online builders). Allows you to take into account the number of views on pages that are updated without reloading.
    • Using visit parameters is a script option that allows you to transfer additional custom parameters to Metrica, statistics on which will be collected in the “visit parameters” and “online store parameters” reports. When turning it on, you must remember to write the parameters in the counter code.
    • Prohibition of sending pages for indexing – enable this if you do not want the site to be indexed by the Yandex search robot.

    If you have already connected Yandex Metrica, then after changing additional parameters you need to update the counter code (replace the old one with a new one) on all pages of the site.

    Completing the installation of Yandex Metrics

    After you have installed the Yandex counter on the site, statistics will begin to be displayed within half an hour. Otherwise, the error status will be shown as an icon when viewed in your personal account.


    At the same time, the efficiency of the received data is at the proper level: the delay between user actions and the reflection of this fact in statistics usually ranges from 30 seconds to 5 minutes.

    Bonus: Ya-Metrika browser plugin.

    As promised, at the end I’ll tell you and give links to a useful plugin for Yandex Metrics, which allows you to check the correctness of the counter installation and view statistics (if access is provided or open) of sites. You can find an add-on for Google Chrome