Question

How do I carry guest's property to user's property?


I'm new to Mixpanel, and I'm tracking a platform website. Right now I'm planning to record the first product viewed by a guest (not yet a user)

if (_.isEmpty(this.user)) {
mixpanel.identify(mixpanel.get_distinct_id())
}
else {
mixpanel.identify(this.user.id)
}
mixpanel.people.set_once({
'First product viewed': this.product.name
})

But for some reason, when the guest becomes a user, their profile's property doesn't contain this info anymore.

Am I missing something?


0 replies

Be the first to reply!

Reply