Marketing

Yandex.Metrica: 5 steps to successfully setting up a counter

Yandex.Metrica: 5 steps to successfully setting up a counter

4 Professions in Internet Marketing: Free Mini-Course

Learn More

Step-by-Step Guide to Installing Yandex.Metrica

To Get Started with To use Yandex.Metrica, you need to create a Yandex.Mail account. This account is the basis for using all Yandex services. If you don't have an account yet, you can register on the official Yandex website. After creating an account, you will have access to powerful analytics tools that will help you track your site traffic, analyze user behavior, and optimize content for better results.

Registering email with Yandex. Screenshot: Yandex.Metrica / Skillbox Media

After creating your mailbox, go to the "Metrica" ​​section and click the button to add a new counter. This will allow you to track important metrics and analyze your website traffic data. Make sure you set up the counter settings correctly to get the most accurate results.

Click the yellow button to add the counter. Screenshot: Yandex.Metrica / Skillbox Media

Adding a counter is a two-step process: first, you need to set the basic parameters, then install the code on your website. Let's look at this process in more detail. First, it's important to determine the type of counter you want to use, as well as its settings, such as display style, data range, and statistics collection methods. Once the parameters are set, you need to copy the provided code and paste it into the appropriate location on your website. This will allow you to effectively track traffic and analyze user behavior.

First, it's important to set a name for the counter that is easy to remember and understand, especially if you have multiple counters in one account. Also, enter your website URL and specify the email address to which Metrica notifications will be sent. This will help you quickly receive information about your site's performance and monitor its performance.

Set the basic counter settings: name, website address, email address for notifications. Screenshot: Yandex.Metrica / Skillbox Media

We recommend activating the Webvisor, scrollmap, and form analytics features. These tools will allow you to better understand user behavior on your site, which in turn will help optimize the user experience and increase conversion. Using such analytics solutions provides valuable information about how visitors interact with your content and which elements require improvement.

The "Automatic Goals" feature in Yandex.Metrica allows the system to automatically generate standard goals, such as clicks on contact information. In the following, we will discuss how to effectively use these tools to improve the analysis and optimization of your site.

Activate automatic goals and other features, then click "Create counter". Screenshot: Yandex.Metrica / Skillbox Media

In the second step, the system will generate a counter code that needs to be inserted into your website to begin collecting data. Click the "Copy code" button to get it. This code will allow you to track important metrics and analyze the traffic to your resource.

This is what the Metrica code looks like. Screenshot: Yandex.Metrica / Skillbox Media

There are three methods for installing the Metrica code: via HTML code, using a CMS, or via tag management systems. Choose the most suitable method and follow the provided instructions for proper integration.

If you created the site yourself, be sure to insert the Metrica code into every file on your site. Yandex recommends placing this code in the head or body section as close to the top of the page as possible. This will ensure faster loading and effective tracking of your resource's traffic. Correctly placing the code will help you receive accurate user data, which in turn will improve your site's SEO optimization.

When changing the counter settings, be sure to update the code on all pages of your site. This will help ensure proper analytics and visitor tracking. Remember the importance of synchronizing all elements to avoid data inconsistencies.

For sites built on a CMS such as WordPress or Bitrix, we recommend using official plugins for Metrica integration. Install the appropriate plugin through your site's admin panel. After installation, log in or enter your counter number to properly configure analytics. This will ensure up-to-date statistics and improve the performance of your resource.

If the plugin is not installed, paste the code into the header file, which is responsible for the header of your website. This file is accessible on the server and can be edited using an FTP client, such as Filezilla. If you are inexperienced with FTP, it is recommended to seek professional assistance. Correctly editing the header file is important for the correct display of your website and its functionality.

The code must be placed between the head or body tags. If you change the counter settings in the future, update the code in the header file as well. This will ensure that your counter functions correctly and displays up-to-date data on the site.

If the site uses multiple content management systems (CMS), you must install the counter code on each of these platforms. This will ensure accurate statistics collection and traffic analysis for all versions of the site.

For sites created using website builders such as Tilda, it is important to correctly set up the system "Metrics". In Tilda, open the "Analytics" section, select "Connect," and grant the necessary access to the counters. Be sure to republish pages after making changes to ensure data collection is correct. Properly setting up metrics will help you track traffic and user behavior on your website, which is key to optimizing and improving the effectiveness of your online resource.

If you use tag management systems such as Google Tag Manager or Adobe DTM, create a new tag with a Custom HTML template. Paste the counter code into it to track data. This will allow you to effectively collect and analyze user behavior information on your website. Make sure the code is configured correctly to ensure it functions correctly and integrates with your analytics tools.

The Tealium platform, integrated with the Metrica system, allows you to quickly start collecting data; simply enter the counter number. For detailed information on installing and configuring Tealium, we recommend consulting the materials in Yandex.Help. Using Tealium in conjunction with Metrica will provide more effective user behavior analysis and optimize marketing strategies.

Efficient Counter Performance Check

To check that your counter is working correctly, use the "Counter Test" feature, available in the section under the "Metrica" ​​code. This feature allows you to quickly and easily verify that the counter is working properly after installing it on your website. Regularly checking your counter will help you ensure the accuracy of your data collection and improve your website traffic analysis.

Screenshot of the "Counter Check" section in Yandex.Metrica. Source: Skillbox Media

To check, paste the URLs of all key pages on your site into the provided field and click the "Check" button. If the counter is configured correctly, the pages will open in a new tab with a notification. Otherwise, the changes will not be reflected. This procedure ensures that all key pages on your site are being tracked correctly, which is important for SEO optimization and traffic analysis.

There are several reasons why the counter may not function correctly. The main ones include configuration errors, improper code integration on the web page, and browser compatibility issues. You should also consider the possibility of server-side or network failures, which can affect the counter's accuracy. It is important to regularly check and update the counter settings to ensure its correct operation and reliable statistics.

  • the website has an active ad blocker;
  • the counter was not installed or was removed;
  • additional steps must be performed on the page to load the counter;
  • the website uses a redirect that prevents the transmission of URL parameters.

We recommend conducting a sequential check of possible causes of the device's inoperability. Fix the identified problems and retest the counter to ensure its correct operation.

After installing the counter, you need to check what data it collects. To do this, add the _ym_debug=1 parameter to your website's URL and load the page. For example: https://skillbox.by/?_ym_debug=1. Next, open the browser console: for Windows users, use the keyboard shortcut Ctrl + Shift + J; for Mac users, use ⌥ + ⌘ + J. This will allow you to see information about the data being collected and ensure that the counter is working correctly.

If the console displays information about the counter and page actions, such as PageView, this confirms that the counter is configured correctly. The presence of such data indicates successful integration of analytics and allows you to track user behavior on the site.

Information about the counter and actions on the page in the console. Source: Skillbox Media

Don't forget to check whether visitor data is displayed in the Metrica statistics. To do this, go to the "Summary" or "Reports" section. After successfully setting up and testing the counter, all information about your site's traffic will be available in these sections. This will allow you to analyze user activity and optimize content to improve the effectiveness of your resource.

Visitor data in the "Summary" section of "Metrica". Source: Skillbox Media

Advanced Yandex.Metrica Counter Settings

Installing the Yandex.Metrica code on your website unlocks a wide range of additional settings that can significantly improve your analytics capabilities. Let's take a closer look at the available options and their impact on your business's performance. Using these settings allows you to more accurately track user behavior, analyze traffic sources, and optimize marketing strategies. Settings such as goals, events, and segmentation will help you gain a deep understanding of how customers interact with your content, which in turn facilitates more effective business decision-making. Optimizing analytics with Yandex.Metrica is a step toward improving your website's performance and increasing conversions.

The "E-Commerce" option plays an important role for online stores. It allows you to track user interactions with your products, which helps optimize sales and improve the user experience. Activating this feature is necessary if you have products on your website. Follow the recommendations in the official Help Center for proper setup and maximum effectiveness. This will help you better understand customer behavior and adapt your marketing strategies.The Content Analytics tool provides reports on your website's articles, helping you identify the most engaging content for your visitors. Microdata markup is required for the tool to function correctly. Additional information on how to use this feature effectively can be found in the Yandex.Help section. Optimizing your content with this tool will improve engagement with your audience and increase your site's visibility in search engines.

Buttons for activating e-commerce and content analytics. Screenshot: Yandex.Metrica / Skillbox Media

To access additional settings, click the "Additional settings" button located in front of the counter code entry field. This will allow you to customize the settings to suit your needs.

Additional features for the counter. Screenshot: Yandex.Metrica / Skillbox Media

Let's examine the most popular settings.

Timeout specifies the period of user inactivity after which their visit to the site is considered complete. If the user interacts with the site again within the set time, their actions will be counted as a new visit. You can set the timeout from 30 to 360 minutes. A 30-minute timeout is optimal. However, if the site contains long videos or other content that requires more time to view, it is recommended to increase the timeout to obtain more accurate traffic statistics. This will help better analyze user behavior and improve content quality.

For effective website promotion in regions with limited access to Yandex.Metrica, such as Ukraine, it is worth considering using an alternative CDN. This solution can help bypass restrictions, but it's important to be aware of the potential slowdown in counter loading. This slowdown can negatively impact the accuracy of the data collected, so it's important to carefully assess all risks and select solutions to ensure high-quality analysis and monitoring.

An informer is a widget that displays your website's statistics. By enabling the informer, you can customize its appearance, providing visitors to your resource with up-to-date information on traffic and other metrics. This tool not only improves user interaction but also helps build trust in your website.

Advanced settings allow you to use an earlier version of the counter code, as well as a hash tracking function in the browser address bar. Detailed information on each of these functions can be found in the Help section.

Example of informer setup. Screenshot: Yandex.Metrica / Skillbox Media

Useful Aspects of Yandex.Metrica for Effective Data Collection

Yandex.Metrica offers a wide range of settings that, when used correctly, will allow you to obtain complete information about your visitors. In this article, we will discuss in detail the key features of the system, including Webvisor, filters, notifications, access management, goal setting, and data uploading. These tools will help you better understand user behavior on your site and optimize it for maximum effectiveness.

The Webvisor feature allows you to track user behavior on your site, recording their path from entry to exit. With its help, you can monitor clicks, page scrolling, and form completion. Regular analysis of the collected data will help you identify which site elements attract users' attention and which, conversely, may cause negative reactions. This will help optimize the user experience and increase your website's conversion rate.

Using the Webvisor tool, you can collect important data about user behavior on your website. This tool allows you to analyze how visitors interact with content, which sections generate the most interest, and where difficulties arise. You can track mouse movements, clicks, and page scrolling, which will help you better understand the user experience. The data you obtain will help you optimize your website, improve navigation, and increase conversion. Using Webvisor is an effective way to improve the quality of your web resource and make it more attractive to your audience.

  • Country the user came from;
  • Device type (Windows, iOS, etc.);
  • Time spent on the site;
  • Search query they used to come to the site;
  • Resource from which the transition was made;
  • Frequency of visits to your site.
Visitor data in Webvisor - Screenshot: Yandex.Metrica / Skillbox Media

User segmentation is an important tool for analyzing the behavior of specific groups of visitors. If you notice users quickly abandoning your site, it's worth paying attention to the abandonment data, which records bounces. This analysis can help identify issues with mobile responsiveness and improve the user experience. Proper segmentation not only helps you identify weaknesses but also optimize your site's content and functionality, which helps increase conversion and user retention.

The "Filters" feature allows you to optimize data collection by excluding specific visits. This is especially useful for improving the accuracy of your statistics. For example, you can ignore your own visits, which allows for more objective results. If your site is managed by a freelancer or studio, you can add their IP addresses to the ignore list to exclude their activity from analytics. This will help you more accurately assess the behavior of real users and improve your promotion strategy.

Use filters for more accurate statistics - Screenshot: Yandex.Metrica / Skillbox Media

The "Operations" section of the filters provides Report optimization. For example, you can combine page addresses that are accessible using different spellings. This not only simplifies analysis but also prevents duplicate data in reports, increasing their accuracy and efficiency. Report optimization allows you to better monitor performance and user behavior, which helps you make more informed decisions.

If your site is accessible via both HTTP and HTTPS, it is highly recommended to enable the "Replace HTTPS with HTTP" feature. This will help avoid traffic splits and improve your site's SEO. Consolidating traffic to one version of your website improves search engine rankings and increases the overall performance of your website.

Configure operations to display data correctly - Screenshot: Yandex.Metrica / Skillbox

The Notifications feature ensures a quick response to potential website outages. When configured correctly, you can receive notifications about your website's availability via email or SMS. This will help you quickly respond to issues and minimize downtime, which will positively impact your website's user experience and SEO. Make sure this feature is enabled to stay up-to-date on the status of your online project.

Set up notifications to monitor your website - Screenshot: Yandex.Metrica / Skillbox Media
Grant access to Metrica easily and securely - Screenshot: Yandex.Metrica / Skillbox Media

The Goals tool allows you to track key actions on your website, including calls, contact clicks, and form submissions. While some goals are created automatically, it's important to manually add your own goals for critical actions that can drive conversions. This will help you better understand user behavior and optimize your website for maximum results. Setting your own goals allows you to focus on the most meaningful interactions, which in turn leads to more effective analytics and more efficient marketing strategies.

Setting goals should be based on actions that have real value for your business. This will simplify user behavior analysis and improve the effectiveness of your marketing strategies. By focusing on meaningful goals, you can better understand how users interact with your product or service, which in turn will help optimize business processes and increase conversions.

Add goals to track key actions - Screenshot: Yandex.Metrica / Skillbox Media

The "Data Upload" tool allows you to integrate third-party services for in-depth analysis. Connecting a CRM system, for example, allows you to effectively set up end-to-end analytics and optimize advertising campaigns based on real data. This improves your understanding of customer behavior and helps you make informed decisions to improve business performance. Integrating data from various sources facilitates more accurate analysis and improves marketing strategies.

By connecting advertising reports, you can collect all your data in one place, significantly simplifying the management of your advertising campaigns. This will allow you to effectively analyze results and make informed decisions based on the collected information. Learn more about how to implement this feature in practice by following the link.

Data integration for improved analysis - Screenshot: Yandex.Metrica / Skillbox Media
  • How to select keywords for SEO and contextual advertising in Yandex.Wordstat
  • How to promote a website using links
  • How to use search suggestions to promote a website
  • How to choose a platform for end-to-end analytics
  • How to link Metrica and Direct to optimize leads

Internet Marketer: 5 Key Skills for Success

Want to become An internet marketer? Learn 5 essential skills and start a career in this promising field!

Learn more