Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Legacy subscribe (consent) function

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



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


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


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