var setInt3 = setInterval(function(){ if(jQuery('#wpcf7-f1658-p1639-o1 .wpcf7-mail-sent-ok').is(":visible")){ gtag('event', 'conversion', {'send_to': 'AW-995959888/Ub1cCO-G7IABENDI9NoD'}); clearInterval(setInt2) } },800)