HOW TO SUPPLY THE SITE METRIC COUNTER TO THE MOST POPULAR CMS – STEP-BY-STEP INSTRUCTION
In the article “Site traffic” we talked in detail about the methods of tracking visitors on our and other people’s site. In this article, we will talk in detail about how to connect the Yandex Metrica counter.
Yandex Metric is a modern tool for tracking the attendance of a resource. For statistics to work, you must set the counter code.
How to get a counter in Yandex Metric
In order to add a site to Yandex Metric, you need to go to the management console using the link and click the “Add counter” button.
In this case, you must remember that you must be logged in to your Yandex account. If you do not have mail, then get it – it will still be useful to you.
The next step is to enter all the necessary data:
counter name – site name;
site address – url of your site;
time zone – select the time zone of your region;
webviewer, scrolling map, form analytics – enable the possibility of these services, they will be very useful in the analysis of behavioral factors.
By clicking on the “Create counter” button, you will be taken to the second installation step.
Here we are offered to choose one of the options for installing the code.
The service offers several installation methods:
HTML code – you need to add a counter code to all pages of the site;
CMS site constructors – the method depends on the control system, plugins are installed somewhere, somewhere through special blocks;
Tag management system – if you use Google Tag Manager, create a new tag with a Custom HTML template and paste the Metrica counter code into it.
Where to put the metric counter
If the site does not have CMS, then add the code to the HTML code of all pages of the site. The code needs to be placed within the <head> </head> or <body> </body> tags as close as possible to the top of the page, so it will load earlier and be able to send viewing data to the Metrica, even if the visitor closes the page almost immediately .
When adding a counter, you must remember that when installed in the header of the site (header), the counter will load earlier and send data to the metric faster, but at the same time it can significantly slow down the site. Therefore, we recommend installing the counter code in the footer, this will not affect its performance so much. Where to embed is up to you.
Now instructions for adding metrics to different CMS.
Setting Metrics for WordPress
Wordpress is a free management system. It is quite popular due to the fact that it is very simple to use as an article site and has a large number of built-in free templates. It is for bloggers that we will tell you how to set a metric counter.
So, in order to add the metric code in WordPress, you need:
Go to the admin panel and select “Appearance” – “Editor”.
On the right, select the files for the current topic and find footer.php there.
Find the </head> tag and paste the code in front of it.
The code of the attendance counter on the WordPress website (WordPress) is set. Now you can see the statistics of visits.
Setting Metrics for Bitrix
1C Bitrix is the most common management system for online stores and corporate sites. When developing sites, we recommend using it. As part of the SEO promotion, we set the counters and prescribe the goals of the metric on our own. For all others, we offer instructions below.
For sites on Bitrix CMS, there are several ways to set the metric. One of them is to install the plugin and use it to add a counter. We will tell you how to do this in the administrative part without installing plugins.
You must go to Bitrix Administration
Go to the tab “Settings” – “Product Settings” – “Sites” – “Site Templates”. Choose your site
In the text box that opens, go down to the </body> tag and paste the code in front of it.
Thus, you can add a metric counter to Bitrix. With it, you can collect statistics of visits and visits to the site on 1C Bitrix.
Setting metrics for Joomla
Joomla is a free management system. We do not use it in the creation and development of sites, but many still use it. Here for them we will tell you how to set the metric counter on Joomla (Jumla).
Create a module of type “HTML-code”, enter the contents of the code into it.
Select module position.
Turn off the header display.
Enable display on all pages.
If you do everything right, you can track your visit statistics on the Joomla website.
Setting Metrics for Wix
Wix is a shareware management system that allows you to create blog sites and online stores. It is quite common in Russia.
In order to add a metric counter to Wix sites, you must:
Copy counter ID in Metric.
Log in to your Wix account.
On the username in the upper right, go to “Domains”.
Go to Web Analytics and insert the counter number.
Done! A counter for tracking visitors through the Yandex metric for Wix sites is connected.