var htmlData = document.getElementsByTagName('html')[0]; htmlData.setAttribute('data-guid', 'c567d22a-2990-1bf3-b087-46726c90e15f'); htmlData.setAttribute('data-country_ip', 'US');