top of page
bottom of page
// Assuming you know the chatbot iframe or button ID document.querySelector('#chatbot-button').addEventListener('click', function() { // Push the event to GTM window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'chatbot_opened' }); });