A
A
ak_wi2017-10-23 16:05:27
JavaScript
ak_wi, 2017-10-23 16:05:27

How to connect the Yandex.Metrica target to the opening of VK Widget?

There is a standard VK widget, which is inserted with the code:

<div id="vk_community_messages"></div>
<script type="text/javascript">
VK.Widgets.CommunityMessages("vk_community_messages", 124094788, {widgetPosition: "left",tooltipButtonText: "Есть вопрос?"});
</script>

How to hook the execution of the Yandex.Metrica goal when opening the VK widget? The default onclick for a div with id="vk_community_messages" doesn't work, any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cbl4, 2018-01-13
@ak_wi

there are no necessary events in the dock
here is a temporary solution
https://pastebin.com/ve1ZPWBg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question