Implement the Audience Management Module

Add the Audience Management Module to Adobe Analytics AppMeasurement to forward Analytics data to Audience Manager instead of having the Audience Manager Data Integration Library (DIL) code send a pixel from the page.

Contents:

Prerequisites

In addition to implementing the code described in this document, you must also:

Implementation

To implement the Audience Management Module:

  1. Download AppMeasurement using the Analytics Code Manager (requires version 1.5 or later).
  2. Update your AppMeasurement code to the version included in the downloaded zip file.
  3. Copy all of the code from AppMeasurement_Module_AudienceManagement.js from the zip file. Paste it into the appMeasurement.js file just above the text, "DO NOT ALTER ANYTHING BELOW THIS LINE."
  4. Add the this code, s.loadModule("AudienceManagement");, just above the AppMeasurement_Module_AudienceManagement.js code you just added in the previous step.
  5. Update and copy the code below and add it to the doPlugins function in your AppMeasurement.js file.
s.AudienceManager.setup({
     "partner":"partner name",
     "containerNSID":0,
     "uuidCookie": {
          "name":"aam_uuid",
          "days":30
     }
});
Tip: The audienceManager.setup function shares parameters with the Audience Manager DIL.create function, which you can configure in this code. For more information about these parameters, see DIL create.

Code Elements Defined

The following table defines important variables in the code sample.

Parameter Description

partner

Required. This is a partner name assigned to you by Adobe. It is sometimes referred to as your "partner ID" or "partner subdomain."

Contact your Adobe consultant or Customer Care if you don't know your partner name.

containerNSID

Required. Most customers can just set "containerNSID":0. However, if your company needs to customize ID syncs with a different container, you can specify that container ID here.

uuidCookie

Optional. This configuration lets you set an Adobe cookie in the first-party domain. This cookie contains the UUID.

Results: Data Forwarding to Audience Manager

Your Analytics implementation sends data to Audience Manager after you have:

  • Enabled server-side forwarding (talk to your consultant about this feature).
  • Implemented the ID service.
  • Installed the Audience Management Module.

This process sends data to Audience Manager:

  • On page view calls.
  • From tracked links.
  • From video milestone and heartbeat video views.
Note: The variables sent to Audience Manager from Analytics use special prefixes. You need understand and take these prefixes into account when creating Audience Manager traits. For more information on these prefixes, see Prefix Requirements for Key Variables.