U
U
user_tm2020-12-03 02:02:30
Yandex.Metrica
user_tm, 2020-12-03 02:02:30

How to track clicks on a download link, Yandex metric?

SEO added a JS event target that should track clicks on a link to download a file. Target ID: obschiiblank, the following code was generated, ym(69739237,'reachGoal','obschiiblank')I paste it into the link like this

<a title="тут заголовок ссылки блаблабла" href="http://тут сайт блаблабла.ru/wp-content/uploads/2017/01/RequirementsSpecification.doc" target="_blank" rel="noopener" onclick="ym(45712704,'reachGoal','obschiiblank'); return true;">Общий бланк технического задания</a>
and something clicks do not work as Seoshnik says. Maybe I'm not pasting the code correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Denisov, 2020-12-03
@DeoZ

Well, the number of the counter in the code is different for you, that's for sure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question