var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', 'af437c29-c0fc-e2a8-ede4-1ccd2a29eae4'); htmlData.setAttribute('data-country_ip', 'US');