Each week, Mixpanel will release articles from our archives to help you get the most out of Mixpanel. Follow the Topic Tag #fromthearchive to subscribe to these posts and get alerted when they drop.
To query for custom events via any formatted Mixpanel API endpoint, find the stored name of that custom event. When a custom event is created, Mixpanel creates a new object for the event. You can find the exact name of your custom event via the XHR section of your browser’s developer console and copy the name into your query.
Go to Insights, and select your custom event in the your events dropdown.
Open your browser’s developer console (for Google Chrome, Option + Command + j on a Mac; Ctrl + Shift + j on a PC).
Grab the $custom_event: value:
Then, pass that $custom_event in as the value of the event parameter in your request.
This is a useful tip for when using Mixpanel with Geckoboard, whose Top Event Property List widget will show only native events (not custom events) by default.
Note that custom events may only be used within Mixpanel’s formatted API endpoints and not the raw event export API.