Troubleshooting Mixpanel Event Queries with projectKey Issues
n our front end web app we register a projectKey with every user
mixpanel.register({ projectKey: 'abc-123' });
I am trying to query for specific events with this projectkey. I am using this page to test the query but I get an empty values object https://developer.mixpanel.com/reference/query-event-properties This is how the URL is constructed
https://mixpanel.com/api/query/events/properties?project_id=myid123&event=%5B%22My%20Event%22%5D&name=projectKey&values=%5B%22abc-123%22%5D&type=general&unit=day&from_date=2014-10-01&to_date=2014-10-31
The response is this
{
"data": {
"series": [
"2014-10-01",
"2014-10-02",
"2014-10-03",
"2014-10-04",
"2014-10-05",
"2014-10-06",
"2014-10-07",
"2014-10-08",
"2014-10-09",
"2014-10-10",
"2014-10-11",
"2014-10-12",
"2014-10-13",
"2014-10-14",
"2014-10-15",
"2014-10-16",
"2014-10-17",
"2014-10-18",
"2014-10-19",
"2014-10-20",
"2014-10-21",
"2014-10-22",
"2014-10-23",
"2014-10-24",
"2014-10-25",
"2014-10-26",
"2014-10-27",
"2014-10-28",
"2014-10-29",
"2014-10-30",
"2014-10-31"
],
"values": {}
},
"legend_size": 0,
"computed_at": "2024-11-01T16:58:29.678862+00:00"
}
I know we have events with this project key because i can find this data in the mixpanel UI on the Events tab. I am also trying with the segmentation endpoint https://developer.mixpanel.com/reference/segmentation-query with this as the on query param properties["projectKey"] == "abc-123" But i get the same result