
Contact
Stress, anxiety and depression are responsible for half of all lost work days. You can turn that around with our guide to implementing mental health benefits in your workplace.
function getCookie(cname) {
let name = cname + “=”;
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(‘;’);
for(let i = 0; i <ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function setHiddenFormData(name, value) {
let selector = "input[name='" + name + "']";
if (!document.querySelector(selector)) {
return;
}
let existing = document.querySelector(selector).value;
if (!existing) {
document.querySelector(selector).value = value;
}
}
function setUTMFormData(name) {
setHiddenFormData(name, getCookie(name));
}
hbspt.forms.create({
region: "na1",
portalId: "8346198",
formId: "4ef77726-4a46-4ed4-9239-11ced00fcb4f",
onFormReady: function($form) {
setUTMFormData("utm_source");
setUTMFormData("utm_medium");
setUTMFormData("utm_campaign");
setUTMFormData("utm_content");
setUTMFormData("utm_term");
setHiddenFormData("acid", getCookie("_ga"));
}
});