time
prop is now set automatically with all events, recording UTC timestamp (in seconds) as the client (browser) sees it. The automatic value can be overridden by setting thetime
prop explicitly in tracking calls.$user_id
and$device_id
superprops are set as part of identify/reset flows. This allows finer-grained identity management around linking anonymous, logged-in, and logged-out behavior. New additional behavior is as follows:- If the
distinct_id
is not stored in the persistence (cookie/localStorage) at the time ofmixpanel.init()
then the lib will set a field$device_id
which will be the same as thedistinct_id
generated using UUID. - When
identify()
is called,$user_id
will be set in the persistence to the value passed to theidentify()
call. For example, if you callmixpanel.identify('pat@example.com')
,$user_id
will be set to "pat@example.com". - If any of those fields (
$device_id
and$user_id
) is set in the persistence, all events and property updates will have those fields added in addition to your properties.
- If the