D
D
Dmitry2019-10-18 11:14:39
JavaScript
Dmitry, 2019-10-18 11:14:39

How to fix the conversion in Yandex.Metrica when highlighting text?

Please tell me what code can be used to fix the conversion if a person simply selected and copied the email on the site. (email is not a link, just text)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Fedorov, 2019-10-18
@aliencash

You need to write a js that fires the metrics js event on selection. I won’t tell you exactly, but it seems there is window.getSelection. You can try through it somehow. Although there may be some native events for addEventListener.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question