Opt-in Service using Experience Cloud ID Service extension in Adobe Launch

Learn how to manage Opt-in Service with Experience Cloud ID in Adobe Launch.

Description description

Environment

  • Customer Journey Analytics
  • Adobe Analytics

Issues / Symptoms

Managing Opt-in Service with Experience Cloud ID in Adobe Launch.

Resolution resolution

Experience Cloud ID Service extension in Adobe Launch allows you to manage Opt-in permissions. By default, Opt-ins are granted for all Adobe Experience Cloud solutions. You can configure the settings in the extension to track opt in/out choices of users.

Here is a simple guide to enable and configure Opt-in service.

Note: This guide assumes Experience Cloud ID Service extension is already implemented in Launch.

Step 1

The first step is to enable opt-in in the Experience Cloud ID Service extension UI. The extension gives you the initial three options as below:

No: By default, “No” is selected. This will let you allow the tracking as if all permissions have been granted.

Yes: Turning on this option causes the libraries to wait for you to consent before triggering server calls.

Determined at runtime using function: Enabling this option will cause the libraries to wait for your consent. You would need to supply a reference to a call back function which will return a Boolean (True or False) to determine if Optin is enabled or not.

To enable opt-in, select Yes.

Step 2

The next step is to build a mechanism to get your consent. This is done using Java script or any server-side script. A cookie consent dialogue box to the user needs to be presented along with recording the choice.

Step 3

Once the necessary permission is taken using consent form, you would need to send the choices to Opt-in Service.

The document below describes Opt-in-in Service APIs in detail.

Assuming a website only has Adobe Analytics implementation and is in need of your consent (as mentioned in Step 2). Based on the user preference, one can run the below script to approve/deny the opt-in.

Approve

adobe.optIn.approve([ adobe.OptInCategories.ANALYTICS] , true);

adobe.optIn.complete();

Deny

adobe.optIn.deny([ adobe.OptInCategories.ANALYTICS] , true);

adobe.optIn.complete();

You may also fetch the permissions using the code below and accordingly show/hide the cookie consent window.

if (adobe.optIn.isApproved(adobe.OptInCategories.ANALYTICS)){

       $("#consent").hide();

}

As soon as the above code fires, the Analytics server call/s will be fired.

You may also check the additional configurations in the extension. However, that is out of scope of this document. You may refer to Optin Extension article for more information.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f