How to set a metric on a site

How to set a metric on a site

The most popular traffic and traffic analysis tool is Yandex.Metrica, but how to install it on the site?
Julia SEO marketer

Printed 2002-07-20

The most popular traffic and traffic analysis tool is Yandex.Metrica, but how to install it on the site? The answer depends on your management system. 

If the site is without CMS

In the event that your site is made with bare HTML, you will have to manually install the Metric on each page. To do this, copy the counter code from the “Settings” section of the service and paste it into the code of each page within the or tags. 

For sites with a management system

In this case, there are two options. Firstly, some CMS and site builders have built-in modules for setting the metric. In them, it is usually sufficient to indicate only the counter number. 

Secondly, you can open the main site template and place the code manually in the header or footer of the site. 

It is advisable to place the counter code higher, closer to the beginning of the page code. Otherwise (especially on mobile devices or with poor Internet), the code will load only after the main blocks of the site, which can be quite "heavy". And if the user leaves the site before the code loads, the visit will not be registered at all. It turns out that, for example, in Yandex.Direct you have much more clicks than as a result of visits to Yandex.Metrica. 

In general, there are no other tricks when installing the metric on the site. Remember to set goals :)

Our services

Latest works:

«I am grateful to all the employees of the Illumina Creative engaged in our project. Our corporate website development led to a high quality product that is now well above some competitors and the same level that others »
Vyacheslav Krasnozhen (Founder of Modernization of Aviation Complexes LLC). Web development for the worldwide known company that develops aircraft simulators, especially for Boeing & Airbus
«I was pleased with the work of the agency and Mikhail as his representative. They listened and heard us. Thanks to the redesign of the online store, we are recording a noticeable increase in conversion »
Dmitry Agadzhanov (General Director of Pokupalylux LLC).