---
title: Getting Started with Session Replay
description: >-
  Capture and analyze user sessions with video-like replays to understand
  customer interactions and troubleshoot issues.
breadcrumbs: Docs > Getting Started > Getting Started with Session Replay
---

# Getting Started with Session Replay

{% video
   url="https://datadog-docs.imgix.net/images//getting_started/session_replay/preview.mp4" /%}

## Overview{% #overview %}

Session Replay is a visual tool that recreates user sessions from your applications, giving you a detailed, video-like view of how customers actually interact with your product. Session replay enriches traditional, quantitative data—such as click counts, bounce rates, and page view metrics—with the qualitative context you need to analyze your users' actions.

This page walks you through getting started with Session Replay in Datadog. If you haven't already, [create a Datadog account](https://www.datadoghq.com/?_gl=1*2g30ya*_gcl_au*OTEwMTA2MjI5LjE2OTIxMDc1MzA.*_ga_KN80RDFSQK*MTY5NDAwODQ4OS40OC4xLjE2OTQwMDg2MzcuMC4wLjA.).

## Configure Session Replays{% #configure-session-replays %}

Session Replay is available for browser applications and mobile apps. The examples in this guide demonstrate using Session Replay with a browser app.

To start collecting data for Session Replay:

1. Set up [Datadog RUM Browser Monitoring](https://docs.datadoghq.com/real_user_monitoring/application_monitoring/browser/setup/) by creating a RUM application (ensure you toggle **Session Replay Enabled** to access replay recordings).
1. Generate a **Client Token**.
1. Initialize the RUM Browser SDK by inserting the configuration code generated when you create the RUM application into your application source.

Until Datadog starts receiving data, your application appears as `pending` on the **RUM Applications** page.

For more detailed instructions on collecting Session Replay data, follow the [RUM setup documentation](https://docs.datadoghq.com/real_user_monitoring/#get-started) for your application. For Session Replay setup on mobile apps, see [Mobile Session Replay](https://docs.datadoghq.com/session_replay/mobile/).

## Find particular Session Replays{% #find-particular-session-replays %}

Once you're collecting Session Replay data, navigate to the [RUM Explorer](https://app.datadoghq.com/rum/sessions) and select **Session Replay available** to see all sessions with a replay attached to it. You can visualize this data as a **List**, **Timeseries**, or other format.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/session-replay-available.38deab65aa3412c24d76ac11d283301d.png?auto=format"
   alt="Session Replay available button, as well as visualization options" /%}

Suppose you've been told that a customer experienced issues with your application on a mobile device. You can filter Sessions using **facets**. In this case, filtering by [facet](https://docs.datadoghq.com/real_user_monitoring/explorer/search/#facets) is helpful in searching for specific information, such as a particular user or device type.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/facets-views.df116063b3bd3823669e64a83e1408da.png?auto=format"
   alt="Filtering by facet" /%}

Maybe you've created a [Saved View](https://docs.datadoghq.com/real_user_monitoring/explorer/saved_views/) that shows you all sessions that contain a specific error that your application generates. Bringing up this view is helpful when you know where the issue lies and want to see session replays of users encountering it.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/pinned-views.fe45f51bd4e5a0b9cf1e0721dda6e8fe.png?auto=format"
   alt="Views dropdown" /%}

## Examine a user journey{% #examine-a-user-journey %}

The session replay looks like a video on the left, with standard video navigation tools. Start the replay from the beginning by clicking play, and watch everything that a particular user did.

The **User Journey** is an event timeline on the right side of the page. You can navigate to any moment in the user journey by clicking on an event in the list. You can also track all the actions and errors occurring for each view by clicking **Session Breakdown**.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/user-journey.95558d439f25bbe2b065811c4a7b08c7.png?auto=format"
   alt="Panel with User Journey" /%}

Select **Events** to filter the user journey list by the following event types:

- **View**
- **Action**
- **Error**
- **Frustration Signal**

While hovering over a particular time or view in the user journey, select **Details** to examine Core Web Vitals and other pertinent information, without leaving the replay.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/details-panel.8cb845a2e883fc05ea3bc4cb10e0b11d.png?auto=format"
   alt="Panel with additional details" /%}

From the Details page, you can expand the waterfall view for more detailed information.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/performance-waterfall.c0f755d9d664c0efd44a8738cce3ead4.png?auto=format"
   alt="Expanded performance waterfall" /%}

## Troubleshoot using Developer Tools{% #troubleshoot-using-developer-tools %}

Open Session Replay's [browser developer tools](https://docs.datadoghq.com/session_replay/browser/dev_tools) to explore your application's performance, console logs, errors, and application or user attributes associated with the current replay.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/dev-tools.de7a803f8382ec452b23eb50676e8865.png?auto=format"
   alt="Dev tools console" /%}

## Pivot to correlated data{% #pivot-to-correlated-data %}

Session Replay integrates with your application's metrics, traces, and logs to give you helpful context for debugging issues. Using APM and Error Tracking alongside Session Replay enables you to investigate the root cause of user-facing issues, regardless of where they originate in your stack.

### Investigating request performance with APM traces{% #investigating-request-performance-with-apm-traces %}

The [APM traces](https://docs.datadoghq.com/real_user_monitoring/connect_rum_and_traces) associated with a session replay give you end-to-end visibility across frontend and backend issues, and see how code and infrastructure are impacting your user experience. Having full-stack traces can be helpful if you're unsure whether an error is occurring on the frontend or backend of your application.

Select a replay with traces to view the browser request, as well as all the backend dependencies and services called upon to fulfill the request in a specific page.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/traces-view.9b30d543441248935299518a5cdcc5bb.png?auto=format"
   alt="Traces panel" /%}

Select **View Trace in APM** to see more detailed information, including errors and logs associated with the trace.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/APM.64f6b050e920a74436facdc5c18e448e.png?auto=format"
   alt="APM page with more detailed information" /%}

### Investigating errors with Error Tracking{% #investigating-errors-with-error-tracking %}

[Error Tracking](https://docs.datadoghq.com/real_user_monitoring/error_tracking/) is helpful in debugging issues and getting to the root cause. You can receive alerts for an error occurring, see the exact line of code that caused it, and pivot to view a user session that encountered the error.

In the **Errors** tab, select an error to see the time the error occurred and the message. Click **Issue in error tracking** to see more detail and attributes associated with the session.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/error-tracking.393d64233e3c8c4b4eee9087944f9599.png?auto=format"
   alt="Error tracking panel" /%}

## What's next?{% #whats-next %}

### Create Synthetic browser tests from Session Replays{% #create-synthetic-browser-tests-from-session-replays %}

You can [create a synthetic browser test](https://docs.datadoghq.com/synthetics/guide/rum-to-synthetics/) from the exact sequence of steps your users went through in a Session Replay. Datadog runs synthetic tests on an automated schedule you define, to simulate user behavior, reporting failing tests to you without your users having to encounter the problem again.

To capture a session replay in a synthetic browser test, click **Generate Synthetic Browser Test** above the event timeline.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/browser-test.45a41507f6db321f70395d55e48d74a0.png?auto=format"
   alt="Browser test creation popup window" /%}

For more information about managing, running, and interpreting test results, read [Synthetic Browser Tests](https://docs.datadoghq.com/synthetics/browser_tests/).

### Share with your team{% #share-with-your-team %}

You can share the replay with your team by selecting the **Share** dropdown at the top of the page. You can start the replay at a specific time, to direct your team's attention to a particular time and view of the Replay.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/session_replay/share.4238d3cbd66c167e07e573ac52f89906.png?auto=format"
   alt="Share your replay pop-up" /%}

## Further Reading{% #further-reading %}

- [Session Replay](https://docs.datadoghq.com/session_replay/browser)
- [Mobile Session Replay](https://docs.datadoghq.com/session_replay/mobile/)
- [Session Replay Overview](https://www.datadoghq.com/knowledge-center/session-replay/)
- [Use Datadog Session Replay to view real-time user journeys](https://www.datadoghq.com/blog/session-replay-datadog/)
- [Troubleshooting](https://docs.datadoghq.com/real_user_monitoring/application_monitoring/browser/troubleshooting/)
