var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '758c6244-e483-7af7-d684-aadbda50d7e8'); htmlData.setAttribute('data-country_ip', 'US');