이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

Overview

Session Replay provides visual insights to complement user analytics data. If you are using third-party tools for customer experience, website analytics, and more, you can connect them to Session Replay. This guide walks you through how to access the Session Replay URL to use in integrations, live from the browser where the session is taking place.

Use cases

You may want to connect a third-party tool with Session Replay for a more comprehensive view of user experience indicators such as the following:

  • Form survey results
  • Customer experience tools
  • Data analytics

To fetch the URL for the current user session’s recording, use the following snippet, depending on the installation method you used to set up RUM:

Note: Providing a value for subdomain when fetching the user session’s recording URL is optional, but must be provided if you’re accessing Datadog through a custom subdomain and want to see the custom domain in the URL that gets returned.

import { datadogRum } from '@datadog/browser-rum';

datadogRum.init({
    ...,
    // optional, only needed if using a custom domain name
    subdomain: ''
    ...
});

const url = datadogRum.getSessionReplayLink();
window.DD_RUM.onReady(function() {
    window.DD_RUM.init({
        ...,
        // optional, only needed if using a custom domain name
        subdomain: ''
        ...
    })
    const url = DD_RUM.getSessionReplayLink();
})
window.DD_RUM &&
    window.DD_RUM.init({
        ...,
         // optional, only needed if using a custom domain name
        subdomain: ''
        ...
    });
const url = DD_RUM && DD_RUM.getSessionReplayLink();

Once you retrieve the link through the snippet above, you have a few different ways to pass the data, depending on what option(s) your third-party tool offers:

  • As a hidden form field.
  • As a JSON field.
  • Through a URL parameter.
  • Directly in your integration of choice in JavaScript.

Further Reading

추가 유용한 문서, 링크 및 기사:

PREVIEWING: rtrieu/product-analytics-ui-changes