Skip to content

Comments

feat: support consent management #56

Merged
FentPams merged 5 commits intov2from
consent-management
Dec 4, 2025
Merged

feat: support consent management #56
FentPams merged 5 commits intov2from
consent-management

Conversation

@FentPams
Copy link
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 8.57143% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/index.js 8.57% 29 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

- Store consent in localStorage only when explicitly granted
- Remove consent from storage when denied or revoked
- Add debug logging for consent grant and revocation
Copy link
Contributor

@ramboz ramboz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall logic looks all good to me.
Just left some suggestions on naming and documentation, but nothing blocking

Comment on lines 267 to 276
// OPTION 2: Cookiebot
function setupCookiebotConsent() {
function handleCookiebotConsent() {
const preferences = window.Cookiebot?.consent?.preferences || false;
const marketing = window.Cookiebot?.consent?.marketing || false;
updateExperimentationConsent(preferences || marketing);
}
window.addEventListener('CookiebotOnConsentReady', handleCookiebotConsent);
window.addEventListener('CookiebotOnAccept', handleCookiebotConsent);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! We could add this to the martech plugin as well so it's consistent!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FentPams and others added 2 commits December 4, 2025 14:26
Co-authored-by: Julien Ramboz <ramboz@users.noreply.github.com>
@FentPams FentPams merged commit 5b7a1a0 into v2 Dec 4, 2025
4 checks passed
@FentPams FentPams deleted the consent-management branch December 4, 2025 23:06
github-actions bot pushed a commit that referenced this pull request Feb 18, 2026
# [1.1.0](v1.0.1...v1.1.0) (2026-02-18)

### Bug Fixes

* audience checkpoint name ([9db77eb](9db77eb))
* failing tests following refactoring ([f29dd80](f29dd80))
* fragment content replacement ([638e0db](638e0db))
* fragment experiences are not always picked up by the preview pill ([ddaff54](ddaff54))
* fragment experiences are not always picked up by the preview pill ([163e38e](163e38e))
* only fetch pathname to fix url matching issue ([#38](#38)) ([c9ff2c0](c9ff2c0))
* pill css loading on localhost ([09f8a72](09f8a72))
* regressions from prerendering logic and experimeantation ([e6ba4e0](e6ba4e0))
* remove sampling rate changes as this will be handled directly in the rum library in the future ([eaf73fa](eaf73fa))
* remove sampling rate changes as this will be handled directly in the rum library in the future ([306119b](306119b))
* Support Flexible Parsing ([#37](#37)) ([f7c45aa](f7c45aa))
* update getAllMetadata function ([#33](#33)) ([f6ccbcd](f6ccbcd))

### Features

* Add decoration handler for handling fragment decoration ([#39](#39)) ([5f942a2](5f942a2))
* add fragments support ([b59b6a3](b59b6a3))
* add fragments support ([f0cc4ee](f0cc4ee))
* add support for custom conversion name for experiments ([d09ce89](d09ce89))
* add support for experimentation ([07ace43](07ace43))
* add support for experimentation ([453b598](453b598))
* add support for multiple experiments in the UI ([9ea6ed3](9ea6ed3))
* Central host UI files ([#40](#40)) ([9b4478d](9b4478d))
* prepare data for RUMv2 collection ([7dc74e1](7dc74e1))
* support consent management  ([#56](#56)) ([5b7a1a0](5b7a1a0))
* support customized variant name for fragment variants ([#36](#36)) ([9db8662](9db8662))
* Support page level full redirection ([#43](#43)) ([285011f](285011f))
* Supporting Naming Variants in Page Expereimentation ([#31](#31)) ([ae769a2](ae769a2))
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.

2 participants