Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usercentrics CMP SDK v3 #32

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Usercentrics CMP SDK v3 #32

wants to merge 6 commits into from

Conversation

iiroj
Copy link
Member

@iiroj iiroj commented Feb 28, 2025

Add support for UC CMP SDK v3 via new cmpVersion="3" prop of the UsercentricsScript tag and deprecate v2 methods. Fixes #31

@iiroj iiroj changed the title Usercentrics v3 Usercentrics CMP SDK v3 Feb 28, 2025
@iiroj
Copy link
Member Author

iiroj commented Feb 28, 2025

Migration note: the v3 CMP exposes window. __ucCmp instead of v2 window.UC_UI, so we need to swich all methods: https://usercentrics.com/docs/web/features/api/control-functionality/

@iiroj
Copy link
Member Author

iiroj commented Feb 28, 2025

Migration note: refactored state handling from singleton into React runtime so that it can be swapped out with a different v3 implementation.

…="3" />`

BREAKING CHANGE: This new version supports both Usercentrics CMP SDK v2 and v3, defaulting to v2.
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.

V3 Migration missing method
1 participant