kapa.ai sometimes i am getting duplicate cookies from mixpanel from the same domain any idea why this could happen?
Sorry Mohamad Q., I don't have permission to access files in this workspace. Please ask a workspace admin to reinstall the kapa.ai bot to grant the required permission.
i will send you texts
kapa.ai sometimes i am getting 2 cookies from mixpanel instead of 1 and both from the same domain both start with mp_
The knowledge sources I have access to don't contain specific information about why you might see two mp_ cookies from the same domain in Mixpanel.
However, based on what the docs do mention, here are a couple of relevant configuration points that could be worth investigating:
Subdomain cookie behavior: By default, the Mixpanel JavaScript SDK sets a cookie that works across subdomains. If your setup involves subdomains, it's possible that separate cookies are being created per subdomain. [Mixpanel Cookie]
Multiple Mixpanel instances: If your page initializes Mixpanel more than once (e.g., with different project tokens or instance names), each instance would create its own mp_ cookie.
localStorage vs. cookie persistence: The SDK supports different persistence modes (cookie vs. localStorage), and mismatched configurations could potentially lead to unexpected behavior. [Mixpanel Cookie]
For a definitive answer on duplicate mp_ cookies, I'd recommend:
Checking if mixpanel.init() is being called more than once on your page with different configurations or instance names.
Reaching out to Mixpanel Support directly, as this specific scenario isn't covered in the knowledge sources I have available.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
lets say i have the following domain name : mydomain.com subdomain name: mysubdomain.mydomain.com even if i put ross_subdomain_cookie: false, in my devtools i can still see the cookie domain as .mydomain.com
kapa.ai lets say i have the following domain name : mydomain.com subdomain name: mysubdomain.mydomain.com even if i put ross_subdomain_cookie: false, in my devtools i can still see the cookie domain as .mydomain.com
