E
E
Edward2020-04-04 22:34:47
Bitrix24
Edward, 2020-04-04 22:34:47

How to track the sending of a message to the Bitrix24 chat?

How to track when a user sends a message to the Bitrix Chat widget? Tried this code - doesn't work. Site on Joomla

window.addEventListener('onBitrixLiveChat', function(event)
{
  var widgets = event.detail.widget;

  // Обработка событий 
  widgets.subscribe({
    type: BX.LiveChatWidget.SubscriptionType.userMessage,
    callback: function(data) {
      
    // любая команда
                    alert(1);
    }
  });
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question