Mixpanel Community Icon

Create Custom Event for Multiple Similar Event Names Using Wildcards

·
·

We track a ton of events that I'd like to measure in aggregate as a custom event. But, there are dozens of events I want in the combo event, all of which share a similar name. Is there a way to use wildcards or something to specify "include all events with a name like this"? e.g. event names userClicked-a userClicked-b userClicked-c userClicked-d userClicked-e ... userClicked-n and I would like to have a custom event for "all events whose name contain userClicked" without having to manually add each one.

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    I do not know of a way to automatically do that. It's one of the reasons I tend to use a "userClicked" event, and then set a property on each event for "whatClicked" or something like that. then you can filter to only those where "a" was clicked or "b" was clicked but have the aggregated one if needed. You can also do more with the customer properties and regex functions to combine subsets (e.g., "a|b|e|f").