(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11104491-24', 'register.it'); ga('send', 'pageview'); $(document).ready(function() { $(".trackingSSO").click(function(){ var productName = $(this).attr("data-product"); if(productName == undefined) { var productName = 'New site'; } ga('send', 'event', 'SSO Access', productName, ''); }); $(".trackingSSO-backoffice").click(function(){ ga('send', 'event', 'Backoffice', 'SSO Access'); }); $(".modal-content").on("submit","#addSiteForm",function(){ ga('send', 'event', 'Sitelock' , 'configure'); if( $(this).find("#trueShieldSetup").is(':checked') ){ ga('send', 'event', 'Trueshield' , 'auto configure'); } }); if (typeof alternativeAsyncTracking !== 'undefined' && alternativeAsyncTracking.length > 0) { dataLayer.push({ 'event': 'event', 'eventCategory': alternativeAsyncTracking[0], 'eventAction': alternativeAsyncTracking[1], 'eventLabel': alternativeAsyncTracking[2] }); ga('send', 'event', alternativeAsyncTracking[0], alternativeAsyncTracking[1], alternativeAsyncTracking[2]); } });