Skip to content

Conversation

tyiuhc
Copy link
Collaborator

@tyiuhc tyiuhc commented Oct 2, 2025

Summary

This update will support consent-aware firing of $impression events.

Behavior in different states:

  1. GRANTED: will fire events as normal - immediately when variant actions are applied
  2. REJECTED: script will not be run
  3. PENDING: events will be stored in memory, and only fired when consent status is changed to GRANTED

$impression events are update to contain a timestamp to indicate when the event occurred, which will override the timestamp generated by the analytics-browser upon processing. (Relevant PR1, PR2). This is necessary for timestamp accuracy for delayed $impression firing during the PENDING state.

Checklist

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

Copy link

promptless bot commented Oct 2, 2025

📝 Documentation updates detected!

Updated existing suggestion: Document cookie consent handling for Experiment JavaScript SDK

@tyiuhc tyiuhc requested review from bgiori, zhukaihan and a team and removed request for bgiori October 6, 2025 22:00
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