Code Monkey home page Code Monkey logo

Comments (6)

vcarel avatar vcarel commented on June 3, 2024 1

Hi,
I'm on Chrome and the reset() method does not delete the mp_xxxx cookie on my side... Is it supposed to work ?

from mixpanel-js.

tdumitrescu avatar tdumitrescu commented on June 3, 2024

Thanks for bringing this up. To help us reproduce, is there any way you could let us know:

  • the full URL you're seeing this behavior on (subdomains are important)
  • any custom configuration you're passing to mixpanel.init()

?

If any of this info is private or sensitive, just email [email protected] with it.

from mixpanel-js.

vcarel avatar vcarel commented on June 3, 2024

It looks like reset takes time... but when I logout I do a page refresh so to ensure I get started with a new state. So it actually works from time to time.

Why not returning a Promise on reset ?

from mixpanel-js.

tdumitrescu avatar tdumitrescu commented on June 3, 2024

There's nothing about the reset code that ought to be anything but instantaneous (

/**
* Clears super properties and generates a new random distinct_id for this instance.
* Useful for clearing data when a user logs out.
*/
MixpanelLib.prototype.reset = function() {
this['persistence'].clear();
this._flags.identify_called = false;
this.register_once({'distinct_id': _.UUID()}, '');
};
and
MixpanelPersistence.prototype.remove = function() {
// remove both domain and subdomain cookies
this.storage.remove(this.name, false);
this.storage.remove(this.name, true);
};
// removes the storage entry and deletes all loaded data
// forced name for tests
MixpanelPersistence.prototype.clear = function() {
this.remove();
this['props'] = {};
};
). This might be more quickly resolved for you by running through your particular setup with our quite knowledgeable and helpful support staff at [email protected].

from mixpanel-js.

vcarel avatar vcarel commented on June 3, 2024

from mixpanel-js.

tdumitrescu avatar tdumitrescu commented on June 3, 2024

Yes, I really think this is a case where you should contact [email protected] to debug 1-on-1 with someone.

from mixpanel-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.