Skip to content

Commit

Permalink
mixpanel fix for persistance name
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jul 29, 2021
1 parent d0f10e0 commit b43708a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations/Mixpanel/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ class Mixpanel {
}
})(document, window.mixpanel || []);
const options = {
persistence_name: this.persistence || "cookie",
cross_subdomain_cookie: this.crossSubdomainCookie || false,
secure_cookie: this.secureCookie || false,
};
if (this.persistence !== "none") {
options.persistence_name = this.persistence || "cookie";
}
if (this.dataResidency == "eu") {
// https://developer.mixpanel.com/docs/implement-mixpanel#section-implementing-mixpanel-in-the-european-union-eu
options.api_host = "https://api-eu.mixpanel.com";
Expand Down

0 comments on commit b43708a

Please sign in to comment.