Embed single/multi purpose preferences widget
Access Type: PMP Widgets - Editor
Premium Feature: Preference Management Platform
Once a single purpose or multi purpose preferences widget is published, it can be successfully embedded onto your organization's website(s). In this article, we provide an overview of the prerequisites and process involved with embedding these preferences widgets.
Note: The directions in this article and section assume your organization is creating and configuring your preferences widget within the Didomi console which limits the deployment options available per widget format.
Click here to learn more about the differences between utilizing the Didomi console vs the Didomi API and its impact on deployment.
Prerequisites
Preferences widgets need to be embedded in an authenticated environment (i.e. Didomi needs a way to verify the end-user's identity and store/match the preferences record to the correct user). Authentication must be performed in your organization's backend.
Click here to learn more about the various ways your organization can authenticate an end-user.
Embed preferences widget
The configuration for your published preferences widget is stored in an Amazon S3 bucket and can be accessed by loading the Didomi SDK and adding the relevant Didomi container on your website.
Click here to review our developer documentation on how to embed a single purpose or multi purpose preferences widget on your website.
To find the necessary code snippets that need to be added to your organization's website(s), click Preference Management on the left-hand panel and ensure the Widgets tab is selected on the subsequent page.

Navigate to a preferences widget with a publication status of Published on the list and click the Edit icon inline with the preferences widget name.

Select the Embedding tab in the preferences widget configuration flow and navigate to the right-hand panel.
Use the provided fields to copy and paste the SDK script and Didomi container code snippet onto your website(s). The necessary values will already be inserted into the copied code.

Last updated