Skip to main content

Comm100 Chat GTM Event Listener

Track Comm100 enterprise live chat interactions in GTM. Monitor chat start, messages, ratings, and offline events with comm100_action variable.

comm100enterprisechatgtmga4supportcompliance

Event fired

comm100_interactions

Key variable

comm100_action

Comm100

Overview

Comm100 is an enterprise customer engagement platform with live chat, chatbot, email, and SMS. Used heavily in regulated industries (finance, healthcare). This listener hooks into Comm100's JavaScript API.

Event fired: comm100_interactions Variable: comm100_action

Tracked Events

comm100_actionDescription
chat startedConversation begins
chat endedSession ends
message sentVisitor message
message receivedAgent reply
rating submittedChat rated
pre-chat form submittedPre-chat completed
offline form submittedOffline contact
bot message receivedChatbot reply
agent transferredChat transferred

Installation

html
<!-- GTM Custom HTML Tag: Comm100 Listener -->
<script>
(function() {
  function c100Push(action, extra) {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push(Object.assign({
      'event': 'comm100_interactions',
      'comm100_action': action
    }, extra || {}));
  }

  var initComm100 = function() {
    if (typeof window.Comm100API === 'undefined') return;
    Comm100API.on('chatonline', function() { c100Push('chat started'); });
    Comm100API.on('chatended', function() { c100Push('chat ended'); });
    Comm100API.on('chatmessage', function(data) {
      var action = data.sender === 'visitor' ? 'message sent' : 'message received';
      c100Push(action);
    });
    Comm100API.on('chatrating', function(data) {
      c100Push('rating submitted', { chatRating: data.rating });
    });
    Comm100API.on('prechat', function() { c100Push('pre-chat form submitted'); });
    Comm100API.on('offlinemessage', function() { c100Push('offline form submitted'); });
    Comm100API.on('agenttransfer', function() { c100Push('agent transferred'); });
  };

  window.addEventListener('load', initComm100);
})();
</script>

Data Layer Output

json
{
  "event": "comm100_interactions",
  "comm100_action": "chat started"
}

Trigger Configuration

Trigger Type: Custom Event Event Name: comm100_interactions

Compliance Note

Comm100 is used in HIPAA and PCI-DSS environments. Never push message content or PII to the dataLayer without explicit consent and proper data handling procedures.

Related Listeners