Track clicks on phone numbers

Note

The goal is created automatically if the Automatic goals option is enabled in the tag settings. You can manage this goal just like other automatic goals, and configure number hiding.

If your site provides a phone number as a link, you can track how often users click or tap on it. This can help you determine the correlation between the number of user interactions with phone numbers and the actual number of calls. This information can be useful if you don't use call tracking.

To collect the data in Yandex Metrica, you need to set up a special goal. You can create this kind of goal:

  • For all phone numbers on a site. Yandex Metrica recognizes phone numbers by the presence of tel in links. For example:

    <a href="tel:+70123456789">+7 (012) 345-67-89</a>
    
  • For a specific number. Yandex Metrica searches for tel:<specified number> in links.

If you enable partial phone number hiding:

  • When browsing on a computer, a conversion is triggered by hovering over and clicking the phone number.
  • When browsing on a mobile device, a conversion is triggered by tapping the phone number (the number isn’t hidden).

To view goal statistics, use the Conversions report and add the goal to other Yandex Metrica reports.

To create a goal manually:

  1. In Yandex Metrica, go to the Goals page in the left menu.

  2. Click Add goal.

  3. In the Name field, enter a name for the goal to create.

  4. Select the goal type Click on phone number.

  5. Select which numbers to create a goal for. If you chose Specific address, enter the same address in the field as in the link. For example, +70123456789. Make sure the spelling matches.

  6. For more accurate goal recording when the site is viewed from a computer, enable partial hiding of the number. This will help you determine how many desktop site users wanted to see your phone number. Since mobile users tap the phone number to make a call, phone numbers aren’t hidden on mobile devices.
    It won’t affect the layout of your number.

    Hiding is possible for numbers marked up as links without tags inside the number. For example, hiding will work for this number:

    <a href="tel:+70123456789">+7 (012) 345-67-89</a>
    

    But it won’t work for this one:

    <div><a href='tel:+70123456789'>+7<span>012</span>345-67-89</a></div>
    
  7. Click Add goal. The created goal will appear in the list of goals. Yandex.Metrica will start collecting statistics on it within a few minutes.

  8. You can check if the goal is working in the debug panel or the Conversions report. To do this, perform a conversion action on the website. If the Don't count my sessions filter is set in the tag settings, check the goals on the site in the browser's private mode (for example, Incognito in Yandex Browser).

Restrictions

  • If the site address in the tag settings differs from the domain of the site that the goal is being created for, then the preview is not available when hiding the number is enabled.

  • Hiding the number may not work correctly if the styles for the span element are set on your site.

  • small elements are added to the styles.

  • This type of goal can’t be used in Multi-step goals.

  • The service registers a user reaching the same goal on the same counter no more than once per second.

  • During a single user session, the service can register up to 1000 offline conversions and 400 online conversions created for the tag.

  • If you edit the tag or a goal, all the previously collected information does not change.

  • If you delete a goal, information collected for it is no longer available in reports.

  • To record conversions, the tag initialization code needs to contain the trackLinks:true parameter (to learn more, see Tag initialization parameters).

Learn more

Chat with us

Write an email

Goals in Yandex Metrica work the same way for any sources. Perhaps there aren’t any users who have completed the goal from this source yet.

The recommendations did not help

Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.

This might happen for the following reasons:

  • The goal condition in Yandex Metrica doesn't cover all the possibilities. For example, the goal is set as going to the order confirmation page, but the site also allows instant checkout without visiting this page.
  • The site user has a browser plugin that blocks the Yandex Metrica tag, so this user isn’t counted.
  • The user has an antivirus system with strict privacy settings.
  • The user has a slow internet connection, so the Yandex Metrica tag didn’t load on the target page.
The recommendations did not help

Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.