Shoora
5/14/2019 - 7:16 PM

LifeTex-Analytics-EventListener.js

var liveTex = true,
        liveTexID = 29621,
        liveTex_object = true;
    window.LiveTex = {
        onLiveTexReady: function() {
            LiveTex.addEventListener(LiveTex.Event.CONVERSATION_STARTED, function()
            {
                yaCounter2186197.reachGoal('CONVERSATION_STARTED');
                ga('send', 'pageview', '/virt-page/conversation_start/');
            });
			LiveTex.addEventListener(LiveTex.Event.OFFLINE_MESSAGE_SENT, function()
            {
                yaCounter2186197.reachGoal('OFFLINE_MESSAGE_SENT');
                ga('send', 'pageview', '/virt-page/offline-message-sent/');
            });
			LiveTex.addEventListener(LiveTex.Event.CALL_STARTED, function()
            {
                yaCounter2186197.reachGoal('CALL_STARTED');
                ga('send', 'pageview', '/virt-page/call-started/');
            });
        }
    };
    /* **** */
    (function() {
        var lt = document.createElement('script');
        lt.type ='text/javascript';
        lt.async = true;
        lt.src = '//cs15.livetex.ru/js/client.js';
        var sc = document.getElementsByTagName('script')[0];
        if (sc)
            sc.parentNode.insertBefore(lt, sc);
        else
            document.documentElement.firstChild.appendChild(lt);
})();