Javascript script to add a data-useragent tag to the HTML
// Adds the user agent to a data attribute in the HTML
document.documentElement.setAttribute('data-useragent', navigator.userAgent);
// Adds the user agent to a data attribute in the HTML
document.documentElement.setAttribute('data-useragent', navigator.userAgent);