var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '54ed8ccc-2b1a-0345-a227-d5bbd440be2b'); htmlData.setAttribute('data-country_ip', 'US');