How to create a custom event in Mixpanel

Learn how to create a custom event in Mixpanel from Lexicon: name it, pick the events it matches, and save it to report on them as one event.

Quick answer

To create a custom event in Mixpanel, open Lexicon, choose Custom Events, and click Create Custom Event. Give the event a name, add one or more existing events it should match, then save. The new custom event combines those events so you can report on them together.

Steps at a glance

  1. Open Lexicon from the left sidebar.
  2. Choose Custom Events under Saved Definitions.
  3. Click Create Custom Event.
  4. Pick an event the custom event should match.
  5. Enter a name for the custom event.
  6. Click Save.

Interactive demo

Loading demo…

Summary

A custom event groups existing events into one. Mixpanel lets you create it from Lexicon without writing code, so you can analyze related actions as a single metric.

Step-by-step guide

  1. Step 1

    Open Lexicon

    In the left sidebar, click Lexicon. Lexicon is where Mixpanel lists the events, properties and saved definitions for your project.

  2. Step 2

    Open Custom Events

    Under Saved Definitions in the Lexicon menu, click Custom Events. The page lists custom events that combine or filter existing events, and it is empty until you create one.

  3. Step 3

    Click Create Custom Event

    Click Create Custom Event at the top right of the page. A dialog opens where you define the new event.

  4. Step 4

    Pick an event to match

    In the dialog, add an event the custom event should match. Search the list or choose one directly, such as signed_up. You can add more events so the custom event matches any of them.

  5. Step 5

    Name the custom event

    Click the name field at the top of the dialog and type a clear name for the custom event. Choose a name your team will recognize when it appears in reports.

  6. Step 6

    Save the custom event

    Click Save to create the custom event. It is now saved in Lexicon and ready to use when you build reports.

Why this matters

You track several events that mean the same thing to your team, such as signing up and creating a first task. Combining them into one custom event lets you chart them together instead of rebuilding the same report each time.

Frequently asked questions

  • Can a custom event match more than one event?

    Yes. The dialog matches your custom event when any of the events you add happen, and you can add more than one.

  • Where do I find my custom events afterward?

    Open Lexicon and choose Custom Events under Saved Definitions to see every custom event in the project.

Create interactive demos like this one — free, no coding required.

Start for free →