Solved

distinct_id is empty

  • 9 September 2020
  • 2 replies
  • 114 views

Hi Colleagues,

 

Could you please advice me regarding: if I send request with jql like: “function main() {
  return Events({
    from_date: '2016-01-01',
    to_date:   '2016-01-07'
  });
}”

it should return json with list of events with all properties for each event. But in my case in events properties “distinct_id” is empty.

{

"name": "Play game 2",

"distinct_id": "",

"labels": [],

"time": 1597216474000,

"sampling_factor": 1,

"dataset": "$mixpanel",

"properties": {

"$distinct_id": "",

"$insert_id": "lcyiwAsmfmuikgqrhjcsBqEswywCcDqqgEhi",

"Level": "1",

"mp_processing_time_ms": 1597241674620

}

}

What are the ways to solve this?

 

Thanks in advance

Serhiy

 

icon

Best answer by ian 1 October 2020, 17:03

Hi @sergiyz,

You’re right that the query you sent over should show all events in JSON and the distinct_id should show its value.  Nothing in the query indicates any issues.  

That said, I would guess that you may be sending in the “Play game 2” event without any distinct_id.  Assuming your hitting our track API using our HTTP spec, you have to designate a distinct_id to be sent in with the event:

https://developer.mixpanel.com/reference/http#events

To confirm that the distinct_id is indeed blank, when going into our Insights report, select the “Play game 2” event and toggle between the Total and Unique count, if the Unique count drops significantly or goes to zero, then the distinct_id isn’t being sent in at all.

Let me know if the above is the case.

Ian

View original

2 replies

Userlevel 5
Badge +3

Hey @sergiyz —

 

Tagging in our JQL gurus @ian @glencwillis & @Emmett to see if they can help you out here!

Userlevel 2
Badge +2

Hi @sergiyz,

You’re right that the query you sent over should show all events in JSON and the distinct_id should show its value.  Nothing in the query indicates any issues.  

That said, I would guess that you may be sending in the “Play game 2” event without any distinct_id.  Assuming your hitting our track API using our HTTP spec, you have to designate a distinct_id to be sent in with the event:

https://developer.mixpanel.com/reference/http#events

To confirm that the distinct_id is indeed blank, when going into our Insights report, select the “Play game 2” event and toggle between the Total and Unique count, if the Unique count drops significantly or goes to zero, then the distinct_id isn’t being sent in at all.

Let me know if the above is the case.

Ian

Reply


Mixpanel