var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '7cfcd18d-327c-f69a-4b28-90b4fd0209af'); htmlData.setAttribute('data-country_ip', 'US');