GTM + LiveTex
<script type="text/javascript">
$('#IDForm').on('submit', function(){
dataLayer.push({
'event': 'GAevent',
'eventCategory': 'SendForm',
'eventAction': 'CallBackFormSubmit'
});
yaCounter000000.reachGoal('CallBackFormSubmit');
});
</script>
<script type="text/javascript">
var liveTex = true,
liveTexID = 83500,
liveTex_object = true;
window.LiveTex = {
onLiveTexReady: function () {
var desc1 = LiveTex.addEventListener(
LiveTex.Event.CONVERSATION_STARTED,
function (data) {
dataLayer.push({
'event': 'GAevent',
'eventCategory': 'LiveTex',
'eventAction': 'StartChat'
});
yaCounter000000.reachGoal('StartChat');
});
}
};
(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); })();
</script>