amplitude / amplitude/Amplitude-TypeScript

Still sets cookies even though optOut:true

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

説明

## Expected Behavior
Cookies are not set

## Current Behavior
Cookies e.g. `AMP_bd878e3198` and `AMP_MKTG_bd878e3198` are set

## Possible Solution
- Library should not set cookies if `optOut: true` is set in init
- https://amplitude.com/docs/get-started/cookies-and-consent-management should cover how to manage consent with this library rather than some other library

## Steps to Reproduce

```ts
import { init } from "@amplitude/analytics-browser";
// ...
init(apiKey, undefined, {
optOut: true,
});
```

## Environment
- JS SDK Version: `@amplitude/analytics-browser` `2.17.4`
- Installation Method: pnpm
- Browser and Version: Chrome 136

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

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

評価

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

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

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