How to create an action in PostHog
Learn how to create an action in PostHog that groups events like task_created and task_completed under one name using match groups.

Quick answer
To create an action in PostHog, open the Actions page and click Create your first action. Name it, pick Other events, choose an event, add a second match group for another event, then click Save. The action matches either event, so one named action covers both task events at once.
Steps at a glance
- Open the Actions page and click Create your first action.
- Type a name for the action.
- Open the event picker in Match Group #1.
- Choose task_created.
- Add a second match group.
- Choose task_completed in the new group.
- Click Save.
Interactive demo
Summary
An action in PostHog bundles one or more events under a single name. Each match group adds a condition, and the action triggers when any group matches. It keeps your analysis readable when several events mean the same thing to your team.
Step-by-step guide
Step 1
Create your first action
Open the Actions page. With no actions yet, the page shows a Create your first action link. Click it to open the action editor.
Step 2
Name the action
Click the Enter name field at the top and type a clear name, such as Created or completed a task. Match Group #1 below it starts on Pageview, with Other events available beside it.
Step 3
Open the event picker
In Match Group #1, choose Other events. The Event name field shows All events. Click it to open the list of events PostHog has received.
Step 4
Choose task_created
Pick task_created from the list. The first match group now triggers on that event.
Step 5
Add a second match group
Click Add match group. A second group, Match Group #2, appears next to the first and is joined to it with or.
Step 6
Match another event
In Match Group #2, choose Other events so the group can match a named event instead of a Pageview.
Step 7
Choose task_completed
Open the event name field in Match Group #2 and pick task_completed. The action now matches either event.
Step 8
Save the action
Click Save at the top right. The Matching events panel lists recent events that fit the action.
Why this matters
You track task_created and task_completed separately, but your team thinks of both as task activity. Grouping them into one action means you can refer to that activity by a single name instead of rebuilding the same two-event filter each time.
Frequently asked questions
Can one action match more than one event?
Yes. Add a match group for each event. The groups are joined with or, so the action triggers when any group matches.
Where can I see which events an action matches?
The Matching events panel on the action page lists recent events that match, with a Last 24 hours filter.
Related guides
Continue with more step-by-step guides for getting work done.
How to create a cohort in PostHogCreate a dynamic cohort in PostHog that groups people by a person property such as plan, so you can reuse the group across insights and analysis.
How to create a funnel in PostHogBuild a PostHog funnel from signed_up to task_created to task_completed, set the last 14 days, and save it to see where users drop off between steps.
How to add an insight to a dashboard in PostHogAdd a saved PostHog insight to a dashboard in a few clicks: open it from All insights, choose Add to dashboard, and pin it to your overview.
How to duplicate a dashboard in PostHogDuplicate a PostHog dashboard from the Dashboards list in three steps: open the row menu, choose Duplicate, and confirm to create a copy of it.
How to export an insight to CSV in PostHogExport a PostHog insight as a CSV file in three steps: open the saved insight, click Export under Detailed results, and choose the .csv file type.
How to filter out internal users in PostHogExclude your team's traffic from PostHog analytics by adding a plan does not equal internal filter and applying it to every new insight.
Create interactive demos like this one — free, no coding required.
Start for free →