Track clicks to social networks

Note

The goal is created automatically if the Automatic goals option is enabled in the tag settings. You can manage these goals just like other automatic goals.

If your site contains links to social networks, you can use Yandex Metrica to track the number of clicks on them.

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

  • For all social networks specified on your site. Yandex Metrica recognizes social networks by the presence of their URLs in links. For example:

    <a href="social-network.com">Join</a>
    
  • For a specific social network. Use this method, for example, to track different social networks.

    Yandex Metrica searches for <specified address> in links.

List of available social networks:

Social network

URL

Instagram

instagram.com, instagram://, l.instagram.com

VK

vk.me, vk.com, vk://, m.vk.com

Facebook

facebook.com, m.facebook.com

YouTube

youtube.com, youtu.be

RUTUBE

rutube.ru

Twitter

twitter.com, t.co

Odnoklassniki (OK)

ok.ru, connect.ok.ru, mobile.ok.ru, m.ok.ru

LinkedIn

linkedin.com, lnkd.in

Pinterest

pinterest.ru, pinterest.com, br.pinterest.com

Moi Mir

my.mail.ru

LiveJournal

livejournal.com, username.livejournal.com

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 Click to social networks goal type.

  5. Select the social networks to create the goal for.

  6. 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.

  7. You can check if the goal is working in the Conversions or Outbound clicks report. If everything is correct, data should appear in these reports. To check this, perform a conversion action on the site. 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).

A conversion is recorded when the user clicks on the link that leads to the social network. To view goal statistics, use the Conversions report and add the goal to other Yandex Metrica reports.

Restrictions

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

  • A maximum of 200 goals can be set for each tag.

  • 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.


Banned in Russia.