document.addEventListener('DOMContentLoaded', function() {
function getCookie(name) {
let value = "; " + document.cookie;
let parts = value.split("; " + name + "=");
if (parts.length === 2) return parts.pop().split(";").shift();
}
let gaCookie = getCookie('_ga');
if (gaCookie) {
let gaField = document.querySelector('input[name="GAUSERID"]');
if (gaField) {
gaField.value = gaCookie;
}
}
});