Ignore "$last_seen" Property

Prevent the $last_seen property from incorrectly updating people properties with misleading timestamps in server-side Mixpanel implementations.

Use "$ignore_time"

The $last_seen property reflects the timestamp of the last update to any people property, so server-side calls also overwrite and result in all People Profiles showing the same timestamp for $last_seen.

To avoid an overwrite, add in the $ignore_time property to the people call.

"$token": "e3bc4100330c35722740fb8c6f5abddc",
   "$distinct_id": "13793",
   "$ip": "72.229.28.185",
   "$ignore_time": "true",
   "$set": {
       "Address": "1313 Mockingbird Lane"
   }}

This request updates the profile without updating $last_seen (To be safe, all server-side updates to people records should ignore time).

For example, in Ruby you can ignore time by passing “$ignore_time” => “true” into the optional_params dict.

tracker.people.set('Drew', {'$first_name' => 'Drew'}, 0, {'$ignore_time' => 'true'}
Is this article helpful?
3 out of 3 found this helpful

Comments

0 comments

Please sign in to leave a comment.