// Read UTM parameters from the URL and pass them to the Demodesk booking page via URL params // Map URL param names to Demodesk token slugs (ask your Demodesk admin for the slugs) // The values on the right are the Demodesk slugs var utmToTokenMapping = { 'utm_source': 'utm_source', 'utm_medium': 'utm_medium', 'utm_campaign': 'utm_campaign', 'utm_content': 'utm_content', 'utm_term': 'utm_term', } var prefilledTokens = {}; var params = new URLSearchParams(window.location.search); params.forEach((value, key) => { if (utmToTokenMapping[key]) { prefilledTokens[utmToTokenMapping[key]] = value; } }); var bookingPageUtmParams = new URLSearchParams(prefilledTokens).toString(); // todo change required here! // Replace the path of the booking page ("/book/max-muth/talk") with the one from the embed snippet you received var r="https://demodesk.co"> // Read UTM parameters from the URL and pass them to the Demodesk booking page via URL params // Map URL param names to Demodesk token slugs (ask your Demodesk admin for the slugs) // The values on the right are the Demodesk slugs var utmToTokenMapping = { 'utm_source': 'utm_source', 'utm_medium': 'utm_medium', 'utm_campaign': 'utm_campaign', 'utm_content': 'utm_content', 'utm_term': 'utm_term', } var prefilledTokens = {}; var params = new URLSearchParams(window.location.search); params.forEach((value, key) => { if (utmToTokenMapping[key]) { prefilledTokens[utmToTokenMapping[key]] = value; } }); var bookingPageUtmParams = new URLSearchParams(prefilledTokens).toString(); // todo change required here! // Replace the path of the booking page ("/book/max-muth/talk") with the one from the embed snippet you received var r="https://demodesk.co"> // Read UTM parameters from the URL and pass them to the Demodesk booking page via URL params // Map URL param names to Demodesk token slugs (ask your Demodesk admin for the slugs) // The values on the right are the Demodesk slugs var utmToTokenMapping = { 'utm_source': 'utm_source', 'utm_medium': 'utm_medium', 'utm_campaign': 'utm_campaign', 'utm_content': 'utm_content', 'utm_term': 'utm_term', } var prefilledTokens = {}; var params = new URLSearchParams(window.location.search); params.forEach((value, key) => { if (utmToTokenMapping[key]) { prefilledTokens[utmToTokenMapping[key]] = value; } }); var bookingPageUtmParams = new URLSearchParams(prefilledTokens).toString(); // todo change required here! // Replace the path of the booking page ("/book/max-muth/talk") with the one from the embed snippet you received var r="https://demodesk.co">
<script type="application/javascript" id="demodesk-iframe-inserter">
// Read UTM parameters from the URL and pass them to the Demodesk booking page via URL params
// Map URL param names to Demodesk token slugs (ask your Demodesk admin for the slugs)
// The values on the right are the Demodesk slugs
var utmToTokenMapping = {
'utm_source': 'utm_source',
'utm_medium': 'utm_medium',
'utm_campaign': 'utm_campaign',
'utm_content': 'utm_content',
'utm_term': 'utm_term',
}
var prefilledTokens = {};
var params = new URLSearchParams(window.location.search);
params.forEach((value, key) => {
if (utmToTokenMapping[key]) {
prefilledTokens[utmToTokenMapping[key]] = value;
}
});
var bookingPageUtmParams = new URLSearchParams(prefilledTokens).toString();
// todo change required here!
// Replace the path of the booking page ("/book/max-muth/talk") with the one from the embed snippet you received
var r="<https://demodesk.com>";var t=/([.*+?\\^${}()|\\[\\]\\/\\\\])/;function n(e){return e.replace(t,"\\\\$1")}function e(e){var t=document.cookie.match(RegExp("(?:^|;\\\\s*)"+n(e)+"=([^;]*)"));return t&&t[1]}function a(e){var t=r+"/book/max-muth/talk?iframe=true"+"&"+bookingPageUtmParams;return e?t+"&hutk="+e:t}var i=document.createElement("iframe");i.style="width: 100%; min-height: 230px; border: none;";i.classList.add("demodesk-demo-template-routings-page");i.src=a(e("hubspotutk"));var m=document.createElement("script");m.src=r+"/iframe_resize.js";var c=document.getElementById("demodesk-iframe-inserter");var o=c.parentElement;o.replaceChild(i,c);o.insertBefore(m,i.nextSibling);
</script>