Code Monkey home page Code Monkey logo

Comments (3)

arittr avatar arittr commented on June 14, 2024

@jacobwegner i think you're dead on here - we're a bit inconsistent with .set/.set_once and Super Properties across our client-side libraries. just so I know the use case, why are you using .set_once more frequently than .set? is there some reason why you're not calling .people.set({"last login": new Date().toISOString()}); (or something similar) regularly to merge in these props? let me know - i'm going to bring this to our product team to see what improvements can be made.

from mixpanel-js.

jacobwegner avatar jacobwegner commented on June 14, 2024

@arittr sorry for the delay in responding.

The issue I ran into with set versus set_once is that calling set will overwrite the initial referrer info with whatever is currently set in the Mixpanel cookie, while calling set_once would respect the existing value.

In my mind, set_once should mimic any defaults included with set, but never overwrite an existing default if it already exists.

from mixpanel-js.

arittr avatar arittr commented on June 14, 2024

@jacobwegner no worries - this makes perfect sense and is the perfect use case for set_once . we should be working on an update for the JS lib reasonably soon and will look to include this - we'd also love a PRQ if you ended up fixing the code on your end. thanks for the feedback and sorry for the frustration here!

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.