The Audience Manager integration has been deprecated in AEM 6.2.
For more information, please read Deprecated Features.
Before using the integration you must configure the Audience Manager Client with the Audience Manager Client ID and Client Secret mentioned above. Without this all requests to the Audience Manager service will be denied.
You only have to perform this step once per instance.
That completes the OSGi Configuration for the AEM Instance. You will not have to do this again for the instance unless the Client ID or the Client Secret change.
Once the AEM instance has been configured with an Audience Manager Client ID and Client Secret you are ready to configure a connection between the AEM instance and the Audience Manager service you have been given details for. There may be many instances of Audience Manager connected to a single AEM instance, and vice versa. If you need to connect more than one you will have to make some configuration changes (see below) to select which instance is being used on which site. By default AEM is configured to connect to the Audience Manager Cloud Service configuration named "test." To configure that, follow these steps:
Click Connect to AudienceManager.
The values for Partner and Container Namespace ID are validated with the Audience Manager Service. If they are valid, a username and password prompt displays to authorize the AEM server to communicate with the Audience Manager service on your behalf. The AEM server does not store your username and password, but will use them to authenticate and retrieve access tokens.
Enter your Audience Manager user name in the Username field and password in the Password field and click OK.
The configuration screen completes the configuration on your behalf and retrieve access tokens to enable the AEM instance to configure the Audience Manager service for AEM use. After the tokens are retrieved you are taken back to the AudienceManager Setting dialog where the OK button is enabled, and the Token Expire Date field is filled in.
The Connect to AudienceManager button has been replaced by a Re-Connect to AudienceManager button. If you need to re-authenticate this configuration in the future you may come back here and click Re-Connect to AudienceManager to re-authenticate and connect.
Once the configuration settings are saved you see the AudienceManager Setting screen updated with your values.
In the background, the AEM server is communicating with the Audience Manager service. It is configuring segmentation rules for all Audience Manager Segments associated with your account and is setting up a URL Cookie destination in the Audience Manager service. When this process completes, you see a log message as follows in the error log. The process takes about 30 seconds for each 100 Audience Manager Segment encountered.
This completes the configuration of the Cloud Service for Audience Manager. You may now configure the Client Context to enable you to manipulate AEM segmentation using Audience Manager traits.
CQ_Analytics.AAM.AudienceManager.invoke(mapOfSignals) where mapOfSignals is a map containing sid : [ array of Audience Manager Triat IDS ] any other property: a custom signal to the Audience Manager Service
The client library is located at
And loaded with configuration by one of:
If you have more than one Audience Manager URL or Cookie Destination you want to incorporate you may adjust the configuration in the init.js.jsp files to add those destinations in. See Using Client Libraries for more details.