}); window.CVENT.addTriggerHandlers('AllPages', function() { (function(){var s = document.getElementsByTagName("script")[0]; var b = document.createElement("script"); b.type = "text/javascript";b.async = true; b.src = "https://www.googletagmanager.com/gtag/js?id=AW-516775036"; s.parentNode.insertBefore(b, s);})(); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-516775036'); console.log("ads all fired"); console.log(window.location.href); if (window.location.href.indexOf("/confirmation") != -1){ gtag('event', 'conversion', {'send_to': 'AW-516775036/j18sCMSQmJAYEPy4tfYB'}); console.log("ads reg fired"); } });