amplitude / amplitude/Amplitude-TypeScript

Session Replay scripts being loaded even though feature not in use

オープン
#956 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
question sessionreplay unified-script
主要言語
TypeScript
スター
180
フォーク
68
平均マージ
3日 1時間
マージ済み PR(30日)
29

説明

## Summary

I recently migrated to Browser SDK 2 and I have the session replay feature disabled.

But when I look at the network tab on Dev Tools I see the following being loaded:

`https://cdn.amplitude.com/libs/plugin-session-replay-browser-1.12.1-min.js.gz`

I also see log messages like the following on Sentry:

`Amplitude Logger [Warn]: Failed to store session replay events in IndexedDB: UnknownError: Attempt to get a record from database without an in-progress transaction`

Is this expected behavior or am I doing something wrong in my setup?

## Code

This is how I'm loading the SDK:

```



window.amplitude.init(
"<%= amplitudeAppId %>",
{
optOut: true,
minIdLength: 1,
autocapture: {
attribution: true,
sessions: true,
pageViews: false,
formInteractions: false,
fileDownloads: false,
elementInteractions: false,
},
},
);


```

Thanks.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。