laravel-mixpanel icon indicating copy to clipboard operation
laravel-mixpanel copied to clipboard

Different ID for identifying users

Open lwiml opened this issue 6 years ago • 5 comments

Is it possible to use a different value for identifying users instead of the default user->id for auto events? i.e. a SHA1 of the users email address.

lwiml avatar Nov 30 '18 09:11 lwiml

Sure, see issue #52

mikebronner avatar Jan 09 '19 18:01 mikebronner

Hey @mikebronner I am not sure how the referenced issue speaks to this one. Things like your Stripe integration would automatically use the user->id for its identification in Mixpanel when sending events there. Setting the alias on the front end is a different matter I would think. In my case we identify the user in Mixpanel with a UUID. Would love to hear your thoughts on how to ensure that the backend event tracking can use that as the identifier.

stueynet avatar Jun 09 '19 16:06 stueynet

Hi @stueynet, thanks for reaching out. I'm sorry I haven't been able to dedicate much time to this. I hope to look into this, considering your scenario as well, soon.

mikebronner avatar Jun 09 '19 16:06 mikebronner

No worries at all! Thanks Mike.

stueynet avatar Jun 09 '19 16:06 stueynet

I have just opened PR 81 to add this functionality

Arkitecht avatar Sep 18 '20 00:09 Arkitecht