var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '0a084457-e027-7aec-3776-3b250adc2ecd'); htmlData.setAttribute('data-country_ip', 'US');