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_interactionsKey variable
comm100_actionComm100
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_action | Description |
|---|---|
chat started | Conversation begins |
chat ended | Session ends |
message sent | Visitor message |
message received | Agent reply |
rating submitted | Chat rated |
pre-chat form submitted | Pre-chat completed |
offline form submitted | Offline contact |
bot message received | Chatbot reply |
agent transferred | Chat 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.