Skip to content

Mixpanel Integration Group Properties can't be overwritten due to .set_once() call #686

Description

@rpatel05

if (traits && Object.keys(traits).length) {
for (var ind = 0; ind < groupIdentifierTraits.length; ind++) {
window.mixpanel
.get_group(groupIdentifierTraits[ind], groupId)
.set_once(traits);
}
}

Mixpanel integration Group properties call is passed in as set_once(traits) making it so that group props can never be overwritten if the value changes. Suggest changing it to a .set(traits) call or I know a Segment team member considered adding a toggle such as:

if (useSetInGroupCalls === true) {
        window.mixpanel
        .get_group(groupIdentifierTraits[ind], groupId)
        .set(traits);
} else {
      window.mixpanel
        .get_group(groupIdentifierTraits[ind], groupId)
        .set_once(traits);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions