var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', '1022a602-f7f0-3345-d767-dae7811dda34'); htmlData.setAttribute('data-country_ip', 'US');