Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In

Legacy subscribe (consent) function

How to update customer consent via the legacy consent function in Optimizely Data Platform (ODP) using the Web SDK.

📘

Note

The legacy subscribe() function is accepted, but no further improvements will be made. Use the Consent method in the Web SDK for current functionality.

Opt-in

zaius.subscribe({list_id: 'zaius_all', email: '[email protected]'});

Opt-out

zaius.unsubscribe({list_id: 'zaius_all', email: '[email protected]'});