var timer = setInterval(function(){ if(document.querySelector('[aria-live="polite"]').innerText.indexOf('Thanks! Message sent.')!=-1){ gtag('event', 'conversion', {'send_to': 'AW-831046405/2K7uCJ_WxIYBEIWGo4wD'}); clearInterval(timer) } },1000) }) Notifications