amplitude / amplitude/Amplitude-TypeScript

Still sets cookies even though optOut:true

Đang mở
#1,078 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
180
Fork
68
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
29

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.