amplitude / amplitude/Amplitude-TypeScript

Still sets cookies even though optOut:true

未关闭
#1,078 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
180
派生
68
平均合并
3 天 1 小时
30 天内合并 PR
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 摘要。