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 this goal 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, 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"</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.com, instagram://, l.instagram.com | |
VK | vk.me, vk.com, vk://, m.vk.com |
facebook.com, m.facebook.com | |
YouTube | youtube.com, youtu.be |
twitter.com, t.co | |
Odnoklassniki (OK) | ok.ru, connect.ok.ru, mobile.ok.ru, m.ok.ru |
linkedin.com, lnkd.in | |
pinterest.ru, pinterest.com, br.pinterest.com | |
Moi Mir | my.mail.ru |
LiveJournal | livejournal.com, username.livejournal.com |
Social network | URL |
---|---|
instagram.com, instagram://, l.instagram.com | |
VK | vk.me, vk.com, vk://, m.vk.com |
facebook.com, m.facebook.com | |
YouTube | youtube.com, youtu.be |
twitter.com, t.co | |
Odnoklassniki (OK) | ok.ru, connect.ok.ru, mobile.ok.ru, m.ok.ru |
linkedin.com, lnkd.in | |
pinterest.ru, pinterest.com, br.pinterest.com | |
Moi Mir | my.mail.ru |
LiveJournal | livejournal.com, username.livejournal.com |
To create a goal manually:
- In Yandex Metrica, go to the Goals page in the left menu.
- Click Add goal.
- In the Name field, enter a name for the goal to create.
- Select the Click to social networks goal type.
- Select the social networks to create the goal for.
- 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.
- You can check whether the goal is working in the Conversions report. Data should appear in it. To check, perform a target action on the site. If Don't count my sessions is set as a filter, check the goals on the site in the browser's private mode (for example, Incognito mode 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
trackLinks:true
(to learn more, see Tag initialization parameters).