function getParam(n){var t=RegExp("[?&]"+n+"=([^&]*)").exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))}function getExpiryRecord(n){var t=new Date(Date.now()+7776e6);return"gclid="+n+"; expires="+t.toUTCString()+"; path=/"}function addGclid(){var n=getParam("gclid");n&&(document.cookie=getExpiryRecord(n))}window.addEventListener("load",addGclid)