amplitude / amplitude/Amplitude-TypeScript

Still sets cookies even though optOut:true

Abierto
#1,078 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
180
Forks
68
Merge medio
3 d 1 h
PR fusionados (30 d)
29

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.