How do I define the domain of the gbuuid cookie wh...
# ask-questions
m
How do I define the domain of the gbuuid cookie when using https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js? My experiment runs on multiple pages, with multiple subdomains and for each subdomain, it generates a new gbuuid.
f
let me check
looks like it doesn't specify a domain:
Copy code
function setCookie(name, value) {
    const d = new Date();
    const COOKIE_DAYS = 400; // 400 days is the max cookie duration for chrome
    d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * COOKIE_DAYS);
    document.cookie = name + "=" + value + ";path=/;expires=" + d.toUTCString();
  }