‘(not set)’, ‘No value’ or ‘undefined’ properties #716
enague
started this conversation in
Tips and Tricks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What does it mean?
Seeing properties marked as '(not set)', ‘undefined’ or ‘(No value)’ is expected behavior. All three of them mean the same: the property being queried or shown in the UI was not ingested for that event or profile; it is not present in that event/profile.
Here’s an example: if you send an event to Mixpanel with a single property called ‘Brand’, when applying a breakdown by the property ‘Model’ you’ll see ‘(not set)’, as your event did not have any property called ‘Model’ in it.
Here’s how these not-present values look like in the Mixpanel UI:
Why does it happen?
There are several reasons why a property can be missing on an event or profile. Here are the most common ones:
How do I fix it?
If you were actually not expecting those “(not set)” values, it’s time to review your implementation of our SDK to make sure that in 100% of the cases the property is sent on the events/profiles you send our way.
Here’s a refresher, on how to set properties for Events and Users.
Events
Here is the documentation for sending Events with JavaScript. Choose your SDK on the left-hand sidebar.
Users
To set User properties, Mixpanel uses
mixpanel.people.set()
:This will set a "Plan" property, with a value "Premium", on user 13793's profile. If there isn't a profile with distinct_id 13793 in Mixpanel already, a new profile will be created. If that property was already set, the old value will be overwritten with "Premium".
Here is the documentation for setting Profile properties with JavaScript. Choose your SDK on the left-hand sidebar.
How do I filter out unset values in a report?
There are 2 ways to discard from a report the events/properties without a certain property present:
Method 1 - unselecting the “not set” segment
If using a breakdown: once you have queried your desired properties, unselect the ‘(not set)’ segment. Depending on the visualization the segments of a breakdown will appear under the chart or on the right side. Here’s an example report.
Method 2 - typecasting to True/False
In other words “if [your property] is true” it means it’s present at the events/profiles being queried.
This report is an example of the end result. The gif below shows the above steps:
Beta Was this translation helpful? Give feedback.
All reactions