- How can I tell if a user performed Event A or Event B?
- Is it possible to see if a user had performed a group of events at a specific step in a funnel?
- Am I able to add an "OR" clause?
An example of this can be seen in the screenshot below:
By default, it is not possible to select multiple steps directly through the chart panel. However, it is possible to add an “or” clause by using custom events.
To do this, create a Custom Event which adds an "OR" clause between two events at one time. Custom events can be used for determining if a user performed one or more events, such as "Viewed Page A" or "Viewed Page B".
In addition to combining multiple events into a single event, another method is to condition an added event by an event property or user property. This is the primary method for analyzing if a user had performed one of many events.
1. To create a custom event, first go to Govern at the bottom left of the Amplitude sidebar navigation and select the project to create a custom event for.
2. After selecting the appropriate project, click on "Create Custom Event".
3. In the modal that appears, select the applicable events to analyze as a single event. There is an option to set different filters on these events as well in the case that the analysis requires a more granular view of the selected events..
Once finished with the above, this event is available for further analyses in Amplitude! From here, select the newly created event in the "Custom" category within the appropriate chart dropdowns.
- Only admins, managers, and members can create custom events
- Custom events are available in the following charts and reports:
- Event Segmentation, Funnel Analysis, Retention Analysis, Lifecycle, Stickiness, Impact Analysis, and Compass
- You cannot query on custom events in Redshift
- All custom events will have the prefix '[Custom]' before the event name in your charts
- Editing or renaming custom events being used on other charts may break those charts.
- It is very important to note that renaming or changing the definition of the custom event will break any charts currently using it as it will still be querying the previously named value until it is manually changed on the chart. You will receive a warning when making any edits to custom events.
- Querying event properties on custom events will only be possible if the property is applicable to all events. This means that if you're trying to create a custom event with 5 events and you'd like to see the location values from all of those events, then you'll need to instrument the location event property to all of the individual events making up the custom event.