As in the Metric and Google Analytics to set objectives for the clicking on the phone number?

Phone number in the form of links +7(999)999-99-99. We want to install target so that when you press is recorded.
March 19th 20 at 08:53
1 answer
March 19th 20 at 08:55
Solution
This is for Yandex
<a onclick="yaCounter123456.reachGoal('ya_goal'); return true;" href="tel:89991234567">89991234567</a>


123456 - ID schetchika
ya_goal - ID purpose

for Google
onclick="ga('send', 'event', 'php', 'click');"

Find more questions by tags Yandex.MetricaAnalystGoogle Analytics