var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '07249a56-70c8-23f4-05e6-d0878dc2904f'); htmlData.setAttribute('data-country_ip', 'US');