var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', 'ea445e4c-3983-4dae-f99c-29be49c4e3ad'); htmlData.setAttribute('data-country_ip', 'US');