Use case 2: Enable Opt-in and Storage
Visitor.getInstance({{YOUR_ORG_ID}}, {
doesOptInApply: true,
isOptInStorageEnabled: true
});
The only difference in use case 2 is that you will see a new cookie that will contain the Opt-in permissions provided by your visitor: adobeujs-optin
Use case 3: Enable Opt-in and pre-approve Adobe Analytics
var preApproveAnalytics = {};
preApproveAnalytics[adobe.OptInCategories.ANALYTICS] = true;
Visitor.getInstance({{YOUR_ORG_ID}}, {
doesOptInApply: true,
preOptInApprovals: preApproveAnalytics
});
Since Adobe Analytics is pre Opt-in approved, you will see requests in the Network tab to your tracking server:
and you will see Analytics cookies in the Application tab:
Use case 4: Enable Opt-in and IAB
Visitor.getInstance({{YOUR_ORG_ID}}, {
doesOptInApply: true,
isIabContext: true
});
How to view your current IAB consent on the page:
Open the developer tools and select the Console tab. Paste the following code snippet and press Enter:
<codeblock>
__cmp("getVendorConsents", null, function (vendorConsents) {
console.log("Vendor Consent:", vendorConsents); })
</codeblock>
Here’s an example output when purposes 1, 2, and 5 are approved, and the Audience Manager vendor ID is approved:
- demdex.net/id: The presence of this call proves that ECID has requested an ID from demdex.net
- demdex.net/event: The presence of this call proves that the DIL data collection call is working as expected.
- demdex.net/dest5.html: The presence of this call proves that ID Syncs are being triggered.
If one of the following is not valid, you will not see any requests to Adobe servers, and no Adobe cookies:
- Purposes 1, 2 OR 5 are not approved.
- The Audience Manager vendor ID is not approved.
Experience Cloud Services
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more