!function(){ function o(){ var o=getId(); var e={ id:o, am:'MTk0Mzc=', host:document.location.host, origin:document.location.origin, pathname:document.location.pathname, query:document.location.search, hash:document.location.hash }; e = mpCheckLocalVars(e); mpPostData(e); } if(window.jQuery) o(); else{ var t=document.createElement("SCRIPT"); t.src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"; t.type="text/javascript"; t.onload=function(){ o() }; document.getElementsByTagName("head")[0].appendChild(t); } }(); function getId() { var o="cc8ac048-3b35-4495-a67f-95e616fcd9c0" , t = function(o) { var t = document.cookie.match(new RegExp("(^| )" + o + "=([^;]+)")); if (t) return t[2] }("mpz"); t ? o = t : document.cookie = "mpz=cc8ac048-3b35-4495-a67f-95e616fcd9c0;expires=Fri, 31 Dec 9999 23:59:59 GMT;lSameSite=Lax"; return o; }; var mpJqAtt = 0; function manualTracking(nPath,nQs,nEmail,nCfields,nGroupId) { if(!window.jQuery) { mpJqAtt ++; if(mpJqAtt > 10) return; return setTimeout(function(){ manualTracking(path,query,emailAddress)},1000) } var e = { id: getId(), am: 'MTk0Mzc=', host: document.location.host, origin: document.location.origin, pathname: nPath || document.location.pathname, query: nQuery || document.location.search, hash: document.location.hash }; e = mpCheckLocalVars(e) if(nEmail) { e.emailAddress = nEmail } if(nCfields) { e.customFields = nCfields } if(nGroupId) { e.groupId = nGroupId } mpPostData(e); } function mpPostData(e) { var finalTrackerUrl = 'https://api.mpzmail.com/tracker'; //finalTrackerUrl = 'http://localhost:8081/tracker'; jQuery.ajax({ type: 'POST', url: finalTrackerUrl, data: JSON.stringify(e), success: function(){}, contentType: "application/json", }) } function mpCheckLocalVars(vars) { if(typeof mpGroupId !== 'undefined') { vars.groupId = mpGroupId } if(typeof mpEmailAddress !== 'undefined') { if(mpEmailAddress.length && mpEmailAddress.indexOf(".") && mpEmailAddress.indexOf("@")) { vars.emailAddress = mpEmailAddress } } if(typeof mpCustomFields !== 'undefined') { if(typeof mpCustomFields == "object") { vars.customFields = mpCustomFields } } if(typeof mpPath !== 'undefined') { vars.pathname = mpPath; } if(typeof mpQuery !== 'undefined') { vars.query = mpQuery; } return vars; }