L8 : Send Custom Data : Audience Manager - adobe-target/mobile-lab GitHub Wiki
Enabling the AAM integration in the JSON config file
AAM and server-side forwarding was enabled for you when you AGS Sandbox was provisioned. However, the code changes necessary to account for that forwarding were configured back in Exercise #1 when you configured your SDK. For informational purposes it's important to note that the following settings in the JSON config are for AAM.
"audienceManager": {
"server": "xxx.demdex.com",
"analyticsForwardingEnabled": true,
"timeout": 5
},
With server-side forwarding enabled, it is possible to create a couple of traits and segments without any further implementation.
Create AAM Data Sources for Mobile Data
-
If necessary, log into your Marketing Cloud Org
-
Use the solution switcher in the top nav to move to Audience Manager.
-
In the AAM interface, click on 'Manage Data' in the left nav.
-
Create a new data source to house Mobile App Analytics data by doing the following:
- Click on 'Data Sources' in the left nav.
- Click '+ Add New' on the 'Data Sources' screen.
- Name the data source 'Target Mobile Lab Analytics' and provide a description if you'd like.
- Leave all other settings as default and click the blue 'Save' button at the bottom of the screen.
- Note the new data source you just created.
Create AAM Traits and Segments
- Click on 'Traits' in the left nav (if necessary, access the AAM interface and click on 'Manage Data' first).
- On the Traits screen, create a new folder to house your traits created from Analytics data by doing the following:
- Hover over the 'All Traits' folder and click the '+' sign right next to it.
- In the 'Add Folder' Dialogue box, enter the name 'Target Mobile Lab' and click the blue 'Save' button.
Create a trait to capture any mobile app visitors by doing the following:
- Click '+ Add New' in the top left and select 'Rule-Based'.
- On the 'Rule-Based Trait' creation page, name the trait 'Mobile App User' and provide a description if you'd like.
- Set the 'Data Source' drop down to the 'Target Mobile Lab' data source created previously in this exercise.
- In the 'Store In:' section, select the 'Target Mobile Lab Data' folder you just created.
- Expand the 'Trait Expression' section.
- In the 'Key' field enter the text 'c_contextdata.device'.
- Change the 'Operator' to '=='.
- In the 'Value' field enter the text 'mobile'.
- Click the blue 'Add Rule' button.
- Click the blue 'Save' button at the very bottom of the rule builder to save this rule-based trait.