happy-parrot-84983
04/10/2022, 7:51 PMid
attribute, which in my context would be overwritten as soon as someone logs in and is associated with their logged in id
. So my question: how do I get both of these pieces to work at the same time?future-teacher-7046
happy-parrot-84983
04/10/2022, 7:58 PMfuture-teacher-7046
// Can only get the distinct_id after Mixpanel fully loads
mixpanel.init("YOUR PROJECT TOKEN", {
loaded: function (mixpanel) {
growthbook.setAttributes({
...growthbook.getAttributes(),
id: mixpanel.get_distinct_id(),
});
},
});
happy-parrot-84983
04/10/2022, 8:04 PM