(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://files.curaytor.io/forest/index.js","snowplow"));
var domain = thebabcockteam.com;
var cookieName = '_thebabcockteam_com_visitor_email';
window.snowplow('newTracker', 'co', 'd.cookiemon.io', {
appId: domain,
cookieDomain: '.' + domain,
platform: 'web',
post: true,
postPath: '/com.cookiemon.media/t2',
contexts: {
webPage: true,
performanceTiming: true
}
});
var getCookie = function (name) {
var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
if (match) {
return decodeURIComponent(match[2])
};
}
var setCookie = function (variable, value) {
var d = new Date();
d.setTime(d.getTime() + (366 * 24 * 60 * 60 * 1000));
var expires = "; expires=" + d.toUTCString();
document.cookie = variable + "=" + (value || "") + expires + "; domain=." + domain + "; path=/";
}
var urlParams = new URLSearchParams(window.location.search);
var email = urlParams.get('email');
if (!email) {
email = getCookie(cookieName);
if (email !== "") {
window.snowplow('setUserId', email);
setCookie(cookieName, email);
}
}
if (email) {
window.snowplow('setUserId', email);
setCookie(cookieName, email);
}
Util.addScript('https://files.curaytor.io/trees/cy-init.js');
//End of script, add other trackers below this line//
};