E
E
eurasiagroupru2021-06-25 12:04:56
CMS
eurasiagroupru, 2021-06-25 12:04:56

How to set a target on a Bitrix 24 widget?

We have a website on Bitrix CMS, there is a widget from the boxed version of the Bitrix 24 portal. I need that when I click on the WhatsApp button, the Bitrix 24 widget triggers a target for Yandex metrics. How to do it? I tried a bunch of methods, and turned to Bitrix. The answer is from them, we give a link and the main code, and then you yourself.

The code of the element itself for which you want to track the click on the link

<a data-b24-crm-button-widget-blank="" data-b24-crm-button-widget="openline_eg-portal_ru_awab_conn" class="b24-widget-button-social-item ui-icon ui-icon-service-eg-portal_ru_awab_conn connector-icon-45" title="" data-b24-widget-sort="400" href="https://wa.me/79243441198" target="_blank">
      <i></i>
      <span data-b24-crm-button-tooltip="" class="b24-widget-button-social-tooltip">WhatsApp Business API</span>
    </a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Arkhipov, 2021-06-25
@IgorArkhipov

You can replace the link with a short one, for example, to your website (the goal works here), and then to WhatsApp.
You can track clicks on external links in Google Tag Manager and trigger goal submission events.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question