Mixpanel Community Icon

Understanding and Resolving (not set) Data in Mixpanel Analytics

·
·

Hi Dear Mixpanel Community, I’ve noticed that in multiple boards within our Mixpanel project, a significant portion of data is labeled as “(not set)”—this includes not only the “Referrer” property but also other metrics and dimensions. I’m trying to understand the potential causes of this and how to resolve or reduce the occurrence of “(not set)” data across the board. Specifically, I’d like to know: 1. What are the most common reasons for data to appear as “(not set)” in Mixpanel across different properties and metrics? 2. How can I better configure my Mixpanel tracking to minimize the number of sessions or data points that are labeled as “(not set)”? 3. Are there any best practices for ensuring that information is accurately captured, especially for referral data, direct traffic, mobile apps, and cross-domain tracking? 4. Could this issue be related to missing UTM parameters, JavaScript blocking, or any specific technical issues I should check on my end? 5. Have others experienced similar issues across different boards, and how were they resolved? Any insights or recommendations on how to address this issue would be greatly appreciated! Thank you in advance for your help!

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    There can be lots of different reasons. What I typically do is right click on the "not set" and inspect a bunch of events to get a sense of what is going on. As to "referrer", it is common/expected for "$direct" to show as "not set" since there is no referrer. You can update your visual by creating a custom property.

    if(@"""{"label":"Referring Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referring_domain"}"""@==UNDEFINED,"Direct",@"""{"label":"Referring Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referring_domain"}"""@)
  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    e.g., in my case, "there is an "initial referring domain" for all page views, but "referring domain" is not set if it's a page view either directly hit or coming from our internal domain.

  • Avatar of Daniel M.
    Daniel M.
    ·
    ·

    Thanks for the fast response!

  • Avatar of Daniel M.
    Daniel M.
    ·
    ·

    Here's how it look

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    Yeah, you should be able to use the above formula (but using Referrer instead of Referring Domain as the selected field) to have that show as "Direct"

    if(@"""{"label":"Referrer","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referrer"}"""@==UNDEFINED,"Direct",@"""{"label":"Referrer","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referrer"}"""@)
  • Avatar of Andrew S.
    Andrew S.
    ·
    ·
  • Avatar of Andrew S.
    Andrew S.
    ·
    ·
  • Avatar of Daniel M.
    Daniel M.
    ·
    ·

    Great! it helped a lot.