php - Why I cannot create alias in Mixpanel? -
in mixpanel have user have automatic distinct_id 145dsfds-sdfsdf
(example). want create alias user 1234
my php code:
require ('mixpanel/mixpanel.php'); $original_id = '145dsfds-sdfsdf'; // example original $uid = 1234; $token = '2j34j3j4j3j'; // token of project on mixpanel $_mp = new mixpanel($token); $_mp->createalias($original_id, $uid); $_mp->people->set($uid, array( 'uid' => $uid ));
after run, go mixpanel , filter people id 1234
, retrieve no result. if visualize details of user 145dsfds-sdfsdf
, property uid
have value 1234
.
i don't understand what's happening.
the root of issue here mixpanel's alias function designed remap uid
original_id
not reverse.
essentially, if alias made, distinct_id see in live-view original_id
, not uid
.
the alias function allows tie pre-authentication events post-authentication events without needing edit events stored in mixpanel (events immutable once in project).
Comments
Post a Comment