var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '540b5489-ee6b-e40d-56ba-df4bda40b618'); htmlData.setAttribute('data-country_ip', 'US');