Заказать звонок
window.addEventListener('onBitrixLiveChat', function(event) { var widget = event.detail.widget; // Обработка событий widget.subscribe({ type: BX.LiveChatWidget.SubscriptionType.userMessage, callback: function(data) { // любая команда if (typeof(dataLayer) == 'undefined') { dataLayer = []; } dataLayer.push({ "ecommerce": { "purchase": { "actionField": { "id" : "chatsend1", "goal_id" : "53748381" }, "products": [ {} ] } } }); } }); });