var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '96aa3380-edd9-7766-1c0f-f6455d6cc727'); htmlData.setAttribute('data-country_ip', 'US');