Skip to content

Conversation

tyiuhc
Copy link
Collaborator

@tyiuhc tyiuhc commented Oct 1, 2025

Summary

This update will support running the web experiment script in a consent-aware manner.

There are 3 possible states: granted, pending and rejected.

These states can be set via window.experimentConfig.consentOptions.consentStatus before the script is loaded.

Behaviors in each state:

  1. GRANTED: the script is run as normal, and user data is persisted
  2. REJECTED: the script is not run at all
  3. PENDING: the script is run a normal, but no user data is persisted. Data is only persisted when the consent status is set to GRANTED via end user action.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

Copy link

promptless bot commented Oct 1, 2025

📝 Documentation updates detected!

New suggestion: Document cookie consent handling for Experiment JavaScript SDK

@tyiuhc tyiuhc requested a review from a team October 2, 2025 20:05
@tyiuhc tyiuhc requested review from bgiori and zhukaihan October 3, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant