For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
세션 리플레이 Android 플러그인
앱이 이미 Amplitude로 계측되어 있는 경우 Android SDK 플러그인을 사용하여 세션 리플레이를 설치하세요. 제품 내 분석에 다른 공급자를 사용하는 경우 독립형 구현을 대신 사용하십시오.
Session Replay and performance
Amplitude built Session Replay to minimize impact on the performance of the Android apps in which it's installed by:
- Asynchronously capturing and processing replay data, to avoid blocking the main user interface thread. The main thread must analyze the view hierarchy, but snapshot capture scheduling and extra processing offloads to the background.
- Using batching and lightweight compression to reduce the number of network connections and bandwidth.
- Optimizing view hierarchy processing. Contact Amplitude if you experience issues with hierarchy processing.
세션 리플레이는 앱의 뷰 트리에 대한 변경 사항을 캡처합니다. 뷰 트리에는 기본 뷰와 모든 하위 뷰가 재귀적으로 포함됩니다. 그런 다음 세션 리플레이는 이러한 변경 사항을 재생하여 비디오와 같은 리플레이를 구성합니다.
예를 들어 세션이 시작될 때 세션 리플레이는 앱의 뷰 트리의 전체 스냅샷을 캡처합니다. 사용자가 앱과 상호작용할 때 세션 리플레이는 뷰에 대한 각 변경 사항을 diff로 캡처합니다. 그런 다음 세션 리플레이는 각 차이를 순차적으로 원본 뷰 트리에 적용하여 세션의 재생을 구성합니다.
세션 리플레이에는 최대 길이가 없습니다.
문제 리포트
Android용 세션 리플레이와 관련된 문제를 리포트하려면 AmplitudeSessionReplay-Android GitHub 저장소로 이동하십시오.
시작하기 전에
사용하는 방법은 사용하는 Amplitude Android SDK의 버전에 따라 다릅니다.
현재 Android-Kotlin SDK를 사용하는 경우 Android 플러그인의 지침을 따르십시오.
세션 리플레이 Android 플러그인을 사용하려면 다음이 필요합니다.
- 사용자의 애플리케이션은 Android 기반입니다.
- SDK에 기기 식별자를 제공할 수 있습니다.
Supported Android versions
Session replay supports down to Android 5.0 with a minimum SDK of 21 minSdk = 21. This should support over 99.6% of global Android devices according to Google's distribution data in Android Studio.
빠른 시작
최신 버전의 플러그인을 프로젝트 종속성에 추가합니다.
// Install latest version from Maven Central
implementation("com.amplitude:plugin-session-replay-android:0.31.0")
// You will also need the Amplitude Analytics SDK if it's not already installed
implementation("com.amplitude:analytics-android:[1.29.0,2.0.0)")
애플리케이션 코드를 구성합니다.
import com.amplitude.android.Amplitude
import com.amplitude.android.Configuration
import com.amplitude.android.plugins.SessionReplayPlugin
// Initialize Amplitude Analytics SDK instance
val amplitude = Amplitude(
Configuration(
apiKey = API_KEY,
context = applicationContext
)
)
// Create and Install Session Replay Plugin
// Recording will be handled automatically
val sessionReplayPlugin = SessionReplayPlugin(sampleRate = 1.0)
amplitude.add(sessionReplayPlugin)
샘플링 속도
이 코드 샘플의 샘플링 속도는 1.0입니다. 이 설정은 테스트 다음 기간동안 Amplitude가 세션을 캡처하도록 보장하지만 프로덕션 시 과잉을 일으킬 수 있습니다.
구성
세션 리플레이 플러그인을 초기화할 때 다음 옵션을 전달하십시오.
| 옵션 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
sampleRate | Number | 아니요 | 0.0 | Amplitude가 재생 수집을 위해 선택하는 세션 수를 제어합니다. 예를 들어 0.4처럼 0과 1 사이의 소수를 사용하면 많은 수의 세션에 대해 40%의 세션을 선택하게 됩니다. |
enableRemoteConfig | Boolean | 아니요 | true | 이 세션 리플레이 인스턴스에 대한 원격 구성을 활성화하거나 비활성화합니다. |
privacyConfig | PrivacyConfig | 아니요 | PrivacyConfig() | 세션 리플레이가 마스킹할 뷰를 제어하는 개인정보 보호 설정입니다. PrivacyConfig(maskLevel = MaskLevel.MEDIUM)를 사용하여 마스크 수준을 설정합니다. 마스크 수준을 참조하십시오. |
serverUrl | String? | 아니요 | null | 고급옵션. 명시적 서버 URL로, 프록시 설정에 유용합니다. |
bandwidthLimitBytes | Int? | 아니요 | null | 고급옵션. 종량제(예: 셀룰러) 연결에서의 바이트 단위 일일 업로드 제한입니다. |
storageLimitMB | Int? | 아니요 | null | 고급옵션. 로컬 스토리지 제한(MB)입니다. |
autoStart | Boolean | 아니요 | true | 플러그인이 초기화될 때 자동으로 화면 캡처를 시작합니다. |
recordLogOptions.logCountThreshold | Int | 아니요 | 1000 | 세션당 최대 로그 수입니다. |
recordLogOptions.maxMessageLength | Int | 아니요 | 2000 | 로그 메시지의 최대 길이입니다. |
사용자 지정 세션 ID
Android 버전 0.26.4 이상용 세션 리플레이는 setCustomSessionId 메서드를 통해 문자열 세션 ID(예: UUID)를 지원합니다. 프로젝트에서 Amplitude 대신 사용자 정의 이벤트 속성을 사용하여 세션을 정의하는 경우 사용자 정의 세션 ID를 사용하십시오session_id.
사용자 지정 세션 ID를 설정할 때, 이 값은 플러그인이 Amplitude SDK에서 데이터 동기화하는 세션 ID보다 우선합니다. 오버라이드를 지우고 Amplitude 세션 ID 사용을 재개하려면 null를 전달하십시오.
// Keep a reference to the plugin to set the custom session ID
val sessionReplayPlugin = SessionReplayPlugin(sampleRate = 1.0)
sessionReplayPlugin.setCustomSessionId("ef197fc7-a46f-4e6c-a77f-8d90c17065c0")
amplitude.add(sessionReplayPlugin)
// Whenever your custom session changes
sessionReplayPlugin.setCustomSessionId(newCustomSessionId)
세션 리플레이가 사용자 정의 세션을 안정적으로 일치시키려면 사용자 정의 세션 ID가 다음 제약 조건을 따라야 합니다.
- 이 값은
/을 포함할 수 없습니다. 세션 리플레이는/을 세션 리플레이 ID의 구분 기호로 사용하며, 형식은<deviceId>/<sessionId>입니다. - 값에는
a-z A-Z 0-9 _ - . | @ : =문자만 포함할 수 있습니다. - 이 값은 이벤트에 대해 Amplitude로 전송하는 세션 정의 속성과 일치해야 합니다. 자세한 내용은 세션 일치를 참조하십시오.
Remote configuration
Enable remote configuration to set Sample Rate and Masking Level in Amplitude.
Remote configuration and testing
With enableRemoteConfig set to true, settings you define in Amplitude take precedence over settings you define locally in the SDK. For this reason, while testing your application, you should disable remote configuration to ensure you can set sampleRate to 1, and ensure you capture test sessions.
Mask on-screen data
The Session Replay SDK offers four ways to mask user input, text, and other view components.
Mask level
Session Replay for Android supports three levels of masking, set through the privacyConfig option with PrivacyConfig(maskLevel = MaskLevel.MEDIUM). The default level is medium.
Use this option in the Session Replay configuration.
| Mask level | Description |
|---|---|
light | Masks password, email, and phone number input fields. In SDK 0.26.2 and later, light also masks any field with sensitive autofill hints (credit card number, expiration, and security code; name; username; postal address and code); autofill-hint detection requires Android 8.0 (API 26) or higher. Earlier versions, including the middleware-session-replay-android artifact, mask only the input-field types above. |
medium (default) | Everything in light, plus all editable text fields (EditText). |
conservative | Everything in medium, plus all text views (TextView). |
Privacy tags in layout XML
Use this option in your application's layout XML.
| View | Description |
|---|---|
<EditText> | Session Replay masks all text input fields by default. When a users enters text into an input field, Session Replay captures asterisks in place of text. To unmask a text input, add the tag amp-unmask. For example: <EditText android:tag="amp-unmask" android:text="Unmask this">. |
<TextView> | To mask text within non-input elements, add the tag amp-mask. For example, <TextView android:tag="amp-mask" android:text="Mask this"/>. When masked, Session Replay captures masked text as a series of asterisks. |
| non-text elements | To block a non-text element, add the tag amp-block. For example, <ImageView android:tag="amp-block"/>. Session Replay replaces blocked elements with a placeholder of the same dimensions. |
<WebView> | To unmask a web view, add the amp-unmask tag. For example, <WebView android:tag="amp-unmask"/>. |
Privacy methods on the Session Replay SDK
Import the SessionReplay class, then call one of the methods below from your application's code.
import com.amplitude.android.sessionreplay.SessionReplay
| Method | Description |
|---|---|
unmask(view: View) | To unmask a view manually, call SessionReplay.unmask(view) where view is a reference to any view that is masked. |
mask(view: View) | To mask text within non-input views, call SessionReplay.mask(view) where view is a reference to the any view you want to mask. When masked, Session Replay captures masked text as a series of asterisks. |
block(view: View) | To block a non-text view, call SessionReplay.block(view) where view is a reference to the View you want to block. Session Replay replaces blocked views with a placeholder of the same dimensions. |
Privacy modifiers in Jetpack Compose
For composables, use the privacy modifiers instead of layout XML tags or the SessionReplay methods. These modifiers require version 0.21.0 or higher of the Session Replay Android SDK or plugin.
Import the modifier you need from com.amplitude.android.sessionreplay.compose, then add it to the composable's modifier chain.
import com.amplitude.android.sessionreplay.compose.ampMask
import com.amplitude.android.sessionreplay.compose.ampUnmask
import com.amplitude.android.sessionreplay.compose.ampBlock
| Modifier | Description |
|---|---|
Modifier.ampMask() | Masks text that Session Replay captures by default, such as the contents of a Text composable. Session Replay captures masked text as a series of asterisks. |
Modifier.ampUnmask() | Unmasks a composable that Session Replay masks by default, such as a TextField. |
Modifier.ampBlock() | Blocks a composable. Session Replay replaces blocked composables with a placeholder of the same dimensions and doesn't capture their contents. |
// Mask text that Session Replay captures by default
Text(
text = "Account number: 123456789",
modifier = Modifier.ampMask(),
)
// Unmask an input field that Session Replay masks by default
TextField(
value = username,
onValueChange = { username = it },
modifier = Modifier.ampUnmask(),
)
// Block a composable and everything it contains
Box(modifier = Modifier.ampBlock()) {
Text("Session Replay doesn't capture this content")
}
A privacy modifier applies to the composable you add it to and to everything nested inside it. When a nested composable has its own privacy modifier, that modifier takes precedence for that composable and its descendants.
사용자 옵트아웃
세션 리플레이 플러그인은 Android SDK의 optOut 설정을 따르며, 자체적으로 사용자 옵트아웃을 지원하지 않습니다.
// Set optOut on the Amplitude SDK
val amplitude = Amplitude(Configuration(
apiKey = API_KEY,
optOut = true,
/* other configuration */
))
amplitude.add(SessionReplayPlugin(/* session replay options */))
EU data residency
Session Replay is available to Amplitude Customers who use the EU data center. Set the serverZone configuration option to EU during initialization. For example:
// Set serverZone on the Amplitude SDK
val amplitude = Amplitude(Configuration(
apiKey = API_KEY,
serverZone = ServerZone.EU,
/*, other configuration */
))
amplitude.add(SessionReplayPlugin(/* session replay options */))
Sampling rate
By default, Session Replay captures 0% of sessions for replay. Use the sampleRate configuration option to set the percentage of total sessions that Session Replay captures. For example:
To set the sampleRate consider the monthly quota on your Session Replay plan. For example, if your monthly quota is 2,500,000 sessions, and you average 3,000,000 monthly sessions, your quota is 83% of your average sessions. In this case, to ensure sampling lasts through the month, set sampleRate to .83 or lower.
Keep the following in mind as you consider your sample rate:
- When you reach your monthly session quota, Amplitude stops capturing sessions for replay.
- Session quotas reset on the first of every month.
- Use sample rate to distribute your session quota over the course of a month, rather than using your full quota at the beginning of the month.
- To find the best sample rate, Amplitude recommends that you start low, for example
.01. If this value doesn't capture enough replays, raise the rate over the course of a few days. For ways to monitor the number of session replays captured, see View the number of captured sessions. - Replays with processing errors don't count toward your monthly quota. Replays with a retention error message have already been counted against the quota, when the session was still in the retention period.
// This configuration samples 1% of all sessions
amplitude.add(SessionReplayPlugin(sampleRate = 0.01))
리플레이 수집 비활성화
세션 리플레이를 활성화한 후에는 다음 중 하나가 될 때까지 앱에서 실행됩니다.
- 사용자가 앱을 떠납니다.
sessionReplayPlugin.stop()을(를) 호출하십시오.amplitude.remove(sessionReplayPlugin)를 사용하여 SDK에서 플러그인을 제거합니다.
사용자가 앱의 제한된 영역으로 이동하기 전에 호출하여 사용자가 해당 영역에 있는 동안 재생 수집을 비활성화하십시오sessionReplayPlugin.stop().
참조 유지
이렇게 하려면 SessionReplayPlugin 인스턴스에 대한 참조를 유지해야 합니다: val sessionReplayPlugin = SessionReplayPlugin(/* session replay options */).
사용자가 앱의 제한되지 않은 영역으로 돌아왔을 때 재생 수집을 다시 활성화하려면 sessionReplayPlugin.start()를 호출하십시오.
특정 화면만 캡처하려면 플러그인이 시작될 때 시작되지 않도록 autoStart = false를 사용하여 초기화한 다음, 사용자가 해당 화면에 들어오거나 나갈 때 start() 및 stop()를 호출하십시오.
// Add the plugin without starting capture
val sessionReplayPlugin = SessionReplayPlugin(sampleRate = 1.0, autoStart = false)
amplitude.add(sessionReplayPlugin)
// Start capture when the user enters a screen you want to record
sessionReplayPlugin.start()
// Stop capture when the user leaves that screen
sessionReplayPlugin.stop()
또한 Amplitude 실험과 같은 기능 플래그 제품을 사용하여 위치와 같은 기준에 따라 리플레이 수집을 활성화하거나 비활성화할 수도 있습니다. 예를 들어, 특정 사용자 그룹을 대상으로 하는 기능 플래그를 생성한 다음 이를 초기화 논리에 추가할 수 있습니다.
import com.amplitude.android.Amplitude
import com.amplitude.android.Configuration
import com.amplitude.android.plugins.SessionReplayPlugin
// Your existing initialization logic with Android SDK
val amplitude = Amplitude(Configuration(apiKey = API_KEY /*, ... other configuration */))
if (nonEUCountryFlagEnabled) {
// Create and Install Session Replay Plugin
val sessionReplayPlugin = SessionReplayPlugin(sampleRate = 0.5)
amplitude.add(sessionReplayPlugin)
}
WebView and MapView support (Beta)
By default, Session Replay blocks web views and map views in a capture. To enable capture of these components, use the settings described in Mask on-screen data.
Web view session replay injects JavaScript into the rendered page. To enable this, the SDK sets javaScriptEnabled to true on the unmasked web view.
Log Recording
Availability
Log recording is available in Session Replay Android 0.22.0 and later.
Session Replay supports recording logs in Android applications. To enable log recording, send log messages through the recordLog(level, message, timestamp) API and configure the limits through recordLogOptions parameter while initializing Session Replay.
import com.amplitude.android.plugins.SessionReplayPlugin
import com.amplitude.android.sessionreplay.config.RecordLogLevel
import com.amplitude.android.sessionreplay.config.RecordLogOptions
val sessionReplayPlugin = SessionReplayPlugin(
recordLogOptions = RecordLogOptions(
logCountThreshold = 2000,
maxMessageLength = 4000
)
)
amplitude.add(sessionReplayPlugin)
sessionReplayPlugin.recordLog(RecordLogLevel.Error, "This is an error log")
// You can also create custom log levels
sessionReplayPlugin.recordLog(RecordLogLevel("debug"), "This is a debug log")
Session Replay supports predefined log levels (Error, Warn, Log) and custom log levels. Create custom log levels by passing any string value to RecordLogLevel(...).
If you have implemented a log system, you can make single-point modifications to integrate log recording functionality. See the following examples for more information.
Timber
If you use Timber, you can integrate it with a custom tree.
import com.amplitude.android.plugins.SessionReplayPlugin
import com.amplitude.android.sessionreplay.config.RecordLogLevel
import timber.log.Timber
class AmplitudeLogRecordTree(private val plugin: SessionReplayPlugin) : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
val recordLevel = when (priority) {
android.util.Log.ERROR -> RecordLogLevel.Error
android.util.Log.WARN -> RecordLogLevel.Warn
android.util.Log.INFO -> RecordLogLevel.Log
android.util.Log.DEBUG -> RecordLogLevel("debug")
android.util.Log.VERBOSE -> RecordLogLevel("verbose")
else -> return
}
plugin.recordLog(recordLevel, message)
}
}
val sessionReplayPlugin = SessionReplayPlugin()
amplitude.add(sessionReplayPlugin)
Timber.plant(AmplitudeLogRecordTree(sessionReplayPlugin))
Data retention, deletion, and privacy
Session replay uses existing Amplitude tools and APIs to handle privacy and deletion requests. <!--vale off-->
Consent management and Session Replay
While privacy laws and regulations vary across states and countries, certain constants exist, including the requirements to disclose in a privacy notice the categories of personal information you are collecting, the purposes for its use, and the categories of third parties with which personal information is shared. When implementing a session replay tool, you should review your privacy notice to make sure your disclosures remain accurate and complete. And as a best practice, review your notice with legal counsel to make sure it complies with the constantly evolving privacy laws and requirements applicable to your business and personal information data practices.
Retention period
If your Amplitude plan includes Session Replay, Amplitude retains raw replay data for 30 days from the date of ingestion.
If you purchase extra session volume, Amplitude retains raw replay data for 90 days from the date of ingestion. If you need a more strict policy, contact Amplitude support to set the value to 30 days.
Changes to the retention period impact replays ingested after the change. Sessions captured and ingested before a retention period change retain the previous retention period.
Retention periods are set at the organization level. Replays that are outside of the retention period aren't viewable in Amplitude.
DSAR API
The Amplitude DSAR API returns metadata about session replays, but not the raw replay data. All events that are part of a session replay include a [Amplitude] Session Replay ID event property. This event provides information about the sessions collected for replay for the user, and includes all metadata collected with each event.
{
"amplitude_id": 123456789,
"app": 12345,
"event_time": "2020-02-15 01:00:00.123456",
"event_type": "first_event",
"server_upload_time": "2020-02-18 01:00:00.234567",
"device_id": "your device id",
"user_properties": { ... }
"event_properties": {
"[Amplitude] Session Replay ID": "cb6ade06-cbdf-4e0c-8156-32c2863379d6/1699922971244"
}
"session_id": 1699922971244,
}
Data deletion
Session Replay uses Amplitude's User Privacy API to handle deletion requests. Successful deletion requests remove all session replays for the specified user.
When you delete the Amplitude project on which you use Session Replay, Amplitude deletes that replay data.
Bot filter
Session Replay uses the same block filter available in the Amplitude app. Session Replay doesn't block traffic based on event or user properties.
Session Replay storage
If a user opts out of tracking in your app, use the optOut configuration option to disable replay collection for that user.
The SDK stores replay data locally. It retries transient upload failures, subject to retry and storage limits.
Amplitude는 각 앱 종료 시 서버로 세션 데이터를 전송하도록 Amplitude SDK 구성(기본값)에서 flushEventsOnClose = true 설정을 권장합니다.
Jetpack Compose Support (Alpha)
Session Replay supports Jetpack Compose for Android applications. This feature is currently in Alpha. To use Jetpack Compose with Session Replay, ensure you use version 0.20.4 or higher of the Session Replay Android SDK or plugin.
To control what Session Replay captures in a composable, use the privacy modifiers in Jetpack Compose. Masking support for Compose requires 0.21.0 or higher.
Known limitations
Keep the following limitations in mind as you implement Session Replay:
Session Replay doesn't stitch together replays from a single user across multiple projects. For example:
- You instrument multiple apps as separate Amplitude projects with Session Replay enabled in each.
- A known user begins on one app, and then switch to another.
- Amplitude captures both sessions.
- The replay for each session is available for view in the corresponding host project.
The User Sessions chart doesn't show session replays if your organization uses a custom session definition.
Session Replay can't capture the following Android views:
- Canvas Views
여러 Amplitude 인스턴스
세션 리플레이는 Amplitude SDK의 단일 인스턴스에 연결하는 것을 지원합니다. 응용 프로그램에 두 개 이상의 인스턴스가 장착되어 있는 경우 프로젝트와 가장 관련이 있는 인스턴스에서 세션 리플레이를 시작하십시오.
Troubleshooting
For more information about individual statuses and errors, see the Session Replay Ingestion Monitor. |
Replay length and session length don't match
In some scenarios, the length of a replay may exceed the time between the [Amplitude] Start Session and [Amplitude] End Session events. This happens when a user closes the [Amplitude] End Session occurs, but before the Android SDK and Session Replay plugin can process it. When the user uses the app again, the SDK and plugin process the event and send it to Amplitude, along with the replay. You can verify this scenario occurs if you see a discrepancy between the End Session Client Event Time and the Client Upload Time.
Session replays don't appear in Amplitude
Session replays may not appear in Amplitude due to:
- Lack of connectivity
- The app process ends or you shut down the SDK before pending replay data uploads.
- Sampling
Lack of connectivity
Ensure your app has access to the internet then try again.
Sampling
As mentioned above, the default sampleRate for Session Replay is 0. Update the rate to a higher number. For more information see, Sampling rate.
Session Replay processing errors
In general, replays should be available within minutes of ingestion. Delays or errors may be the result of one or more of the following:
- Mismatching API keys or Device IDs. This can happen if Session Replay and standard event instrumentation use different API keys or Device IDs.
- Session Replay references the wrong project.
- Short sessions. If a users bounces within a few seconds of initialization, the SDK may not have time to upload replay data.
- Page instrumentation. If Session Replay isn't implemented on all pages a user visits, their session may not capture properly.
- Replays older than the set retention period (defaults to 90 days).
Report an Issue
If you encounter any issues with Session Replay that aren't covered in the troubleshooting guide above, please report them on our GitHub repository.
When creating an issue, please include:
- A clear description of the problem
- Steps to reproduce the issue
- Expected vs actual behavior
- SDK version you're using
- Any relevant error messages or logs
캡처된 세션에는 제한된 정보가 포함됨
Amplitude는 세션 리플레이가 세션을 캡처할 때 자동으로 [Amplitude] Replay Captured 이벤트를 생성합니다. 구현에서 이 이벤트가 표시되지 않는 경우, 리플레이가 퍼널 분석, 세그멘테이션 또는 여정 분석 차트와 같은 Amplitude의 분석 도구에 제대로 표시되지 않을 수 있습니다. 세션 리플레이 홈 페이지 또는 사용자 프로필 페이지에서 세션 리플레이를 계속 확인할 수 있습니다.
이 이벤트가 나타나지 않을 수 있는 이유는 다음과 같습니다.
- 사용자가 선택 해제되었거나 현재
sampleRate에 해당되는 샘플 세트에 속하지 않습니다. 더 많은 세션을 캡처하려면sampleRate을 늘립니다. - 세션에 대한
optOut구성을 활성화했습니다.optOut및sampleRate설정에 세션이 포함되어 있는지 확인하십시오. - 앱이 Android SDK 이외의 방법을 사용하여 이벤트를 계측합니다. Android용 세션 리플레이 독립형 SDK 사용을 고려해 보십시오.
이러한 설정을 확인했지만 여전히 이벤트가 표시되지 않는 경우 Amplitude 서포트에 문의하십시오.
재생 길이와 세션 길이가 일치하지 않습니다.
일부 시나리오에서는 재생 시간이 [Amplitude] Start Session 및 [Amplitude] End Session 이벤트 사이의 시간을 초과할 수 있습니다. 이 상황은 [Amplitude] End Session 이벤트가 발생한 후 사용자가 앱을 닫았지만 Android SDK 및 세션 리플레이 플러그인이 이벤트를 처리하기 전에 발생합니다. 사용자가 앱을 다시 사용하면 SDK와 플러그인이 이벤트를 처리하여 재생과 함께 Amplitude로 전송합니다. 이 시나리오를 확인하려면 End Session Client Event Time와 Client Upload Time 사이의 불일치를 확인하십시오.
세션 재생이 Amplitude에 나타나지 않습니다.
세션 재생은 다음과 같은 이유로 Amplitude에 나타나지 않을 수 있습니다.
- 연결성 부족. 앱이 인터넷에 액세스할 수 있는지 확인한 후 다시 시도하십시오.
- 앱을 종료하기 전에 녹화를 플러시하지 못했습니다.
- 현재 세션에서 Android SDK를 통해 전송된 이벤트가 없습니다.
- 누락된
[Amplitude] Replay Captured이벤트입니다. 캡처된 세션에 제한된 정보가 포함되어 있는지 검토하십시오. - 샘플링
샘플링
세션 리플레이의 기본 sampleRate는 0입니다. 속도를 더 높은 숫자로 업데이트하십시오. 자세한 내용은 샘플링 속도를 참조하십시오.
세션 리플레이 처리 오류
리플레이는 수집 후 몇 분 이내에 사용할 수 있어야 합니다. 지연 또는 오류는 다음 중 하나 이상으로 인해 발생할 수 있습니다.
- API 키 또는 장치 ID가 일치하지 않습니다. 이 불일치는 세션 리플레이와 표준 이벤트 계측이 서로 다른 API 키 또는 장치 ID를 사용할 때 발생합니다.
- 세션 리플레이가 잘못된 프로젝트를 참조합니다.
- 짧은 세션. 사용자가 초기화 후 몇 초 이내에 앱을 닫으면 SDK가 리플레이 데이터를 업로드할 시간이 없을 수 있습니다.
- 페이지 계측. 사용자가 방문하는 모든 페이지에 세션 리플레이를 구현하지 않은 경우 세션이 제대로 캡처되지 않을 수 있습니다.
- 설정된 리텐션 기간(기본값은 90일)보다 오래된 리플레이.
이 내용이 도움이 되었나요?