How to use filters + session replays to understand user friction
Nov 03, 2022
Funnels may tell you where users are experiencing friction within your product, but only session replays can show you why.
In this tutorial, we’ll explain how to use PostHog’s various filters and features to find relevant session replays quickly, and painlessly.
1. Filter recordings by actions or events
A typical use case for session replays is to filter based on an event or action, so you can see how users interact with certain features or areas of your product.
You'll need an appropriate event or action set up to do this – see our complete guide to event tracking for help there.
To start filtering, click ‘Filter.’


Next, click "Show advanced filters," and then "Filter for events or actions." Here you can search for actions or events similar to how you would build an insights — use the filter builder on the left of the screen to define what sort of actions or events you’re looking for.
Once you have filtered the recordings to a smaller, more relevant list then you can search within individual recordings to find the specific moment when an event occurs. In fact, there are a few ways to find the specific event you’re looking for!


The easiest way to focus on a particular action is to use the toggle labeled ‘Only events matching filters’. This removes all events which don’t match your global filter from both the timeline and the event list, changing the view from the above, to the below.


Alternatively, you may prefer to search for an event which doesn’t match a global filter — in which case you use the search events field to find other events within the current recording.
2. Filter recordings based by feature flags
If you use feature flags in PostHog, you can also filter recordings by the flag variant shown to a user. This can be helpful if, for example, you want to compare user behavior between flag variants.
To filter recordings based on an event which happens within a recording where a user has viewed a particular flag. To do this, you must first create a filter based on the event you’re looking for and then create a secondary filter that specifies the flag.
As before, you can then search within a specific recording to find the event you’re interested in.
3. Filter recordings by persons and cohorts
Another use case for filtering recordings is to see how certain types of users behave so you can, for example, determine if users in different countries or demographics interact with your product differently.
Filtering recordings based on person properties is similar to actions or events, except that it is done using the ‘Filter by persons or cohorts’ filter instead.


As before, you can then search within a specific recording to find the event you’re interested in.
4. Filter recordings based on device, location or OS
Often, you’ll want to combine several persons filters with events filters so that you can, for example, find users who completed a specific action on macOS, or called a particular feature flag within the UK.


In such instances you may want to build filters based on device, OS, location or browser with a single click. That’s why we built the quick filter options which you can see on each entry in the recent recordings column — simply click a matching icon to filter for similar recordings.
5. Filter recordings by date and time
The final way to filter recordings is chronologically, based on the time or date that an recording was captured. This can be especially powerful for products where user behavior is influenced by the time of year, such as a B2C marketplace that runs seasonal sales.


Next to the date picker, you can filter recordings based on the overall duration of a session. This is useful if you need to find recordings based where users are highly engaged and interact with your app for extended periods — or where engagements are brief, perhaps due to UX issues.
Further reading
Session recordings in PostHog are powerful tool for users such as support engineers, product designers and product managers who need context on the details of user behavior.
To find out more about session replays, including how to prevent PostHog from capturing sensitive user information, check the session replay docs.
Subscribe to our newsletter
Product for Engineers
Read by 45,000+ founders and builders.
We'll share your email with Substack
Questions? Ask Max AI.
It's easier than reading through 580 docs articles.
Comments
Hi! We're using posthog.identify() to add custom identifiers to users. How can we filter session replays to find a user with a particular identifier? For example, if my code identified a user as "JPQKM", how can i find the session replays corresponding to user "JPQKM"?
The AI chat on this webpage points me to section "3. Filter recordings by persons and cohorts" of this webpage, but the user interface seen in the graphic seems different to the user interface that is currently there in the dashboard. There is also no "alias_id" property as the doc suggests.
Hi there! I'm trying to filter session replays by events, so I can see users performing certain actions. However, when I select any event I see the following error:
Cannot use these events to filter for session recordings:"contacts:list:create_list"Events have to have aSession IDto be used to filter recordings. This is added automatically by the Web SDK, the Android SDKIn case this helps, we're tracking events through Segment. I've been checking bot the PostHog and Segment docs but couldn't find anything about this error.
Thanks in advance for the help!
- Manoel(he/him)9 months ago
Hi Javier,
Are you using the segment library and forwarding the events to PostHog as described in this link?
Check out this link, there's a note about using Segment's SDK and PostHog Session Replay, it could be related to that.
Can you share with us a bit more of your setup such as code snippets?
Thanks.
Best,
Manoel
Can I filter out session replays by events from the autocapture? My expectation is that when I am going through the events happened in the session replay I can click on any of the event and use it for filter. Does it work like that?
Hey Oleg,
Are you wanting to click on an event in the right-hand "inspector" panel to use that as a filter?
We don't support that at the moment. You'd need to manually create a filter that includes that event.
Out of interest, if I've understood you, how do you expect that would work if we built it... would it replace any existing filters or add to them?