Skip to content

Still sets cookies even though optOut:true #1078

Open
@jameshfisher

Description

@jameshfisher

Expected Behavior

Cookies are not set

Current Behavior

Cookies e.g. AMP_bd878e3198 and AMP_MKTG_bd878e3198 are set

Possible Solution

Steps to Reproduce

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions