Sending mobile lifecycle data, as mbox parameters, to Adobe Target enables audience segmentation based on these metrics. To send these metrics to Target for creating audiences, a rule needs to be set up on Experience Platform Data Collection UI to attach these metrics to the Target content or notifications requests. Follow the link to learn how to target visitors using Custom Parameters in Adobe Target.
Create a rule
On Experience Platform Data Collection, navigate to Data Collection > Tags using the left navigation panel. Select an existing mobile tag property or create a new property.
- In your mobile property, navigate to Rules in the left navigation panel and click on Create New Rule. If there already are existing rules, you can click on Add Rule to add a new rule.
- Provide a name for your rule. In the example here, the rule is named " Attach mobile lifecycle metrics to Target raw requests (execute)".
Select an event
- Under the Events section, click on Add.
- From the Extension dropdown list, select Adobe Target.
- From the Event Type dropdown list, select Raw Request.
- Click on Keep Changes.
** Define the action **
- Under the Actions section, click on Add.
- From the Extension dropdown list, select Mobile Core.
- From the Action Type dropdown list, select Attach Data.
- On the right pane, specify the JSON Payload containing metrics of interest.
Attach data JSON for raw execute request
{
"execute":{
"mboxes[*]":{
"parameters":{
"a.appID":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.appid%}",
"a.locale":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.locale%}",
"a.RunMode":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.runmode%}",
"a.Launches":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launches%}",
"a.DayOfWeek":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayofweek%}",
"a.HourOfDay":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.hourofday%}",
"a.OSVersion":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.osversion%}",
"a.CrashEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.crashevent%}",
"a.DeviceName":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.devicename%}",
"a.Resolution":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.resolution%}",
"a.CarrierName":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.carriername%}",
"a.InstallDate":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installdate%}",
"a.LaunchEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchevent%}",
"a.InstallEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installevent%}",
"a.UpgradeEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.upgradeevent%}",
"a.DaysSinceLastUse":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastuse%}",
"a.DailyEngUserEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dailyenguserevent%}",
"a.DaysSinceFirstUse":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincefirstuse%}",
"a.PrevSessionLength":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.prevsessionlength%}",
"a.MonthlyEngUserEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.monthlyenguserevent%}",
"a.DaysSinceLastUpgrade":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastupgrade%}",
"a.LaunchesSinceUpgrade":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchessinceupgrade%}",
"a.ignoredSessionLength":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.ignoredsessionlength%}"
}
}
}
}
Attach data JSON for raw prefetch request
{
"prefetch":{
"mboxes[*]":{
"parameters":{
"a.appID":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.appid%}",
"a.locale":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.locale%}",
"a.RunMode":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.runmode%}",
"a.Launches":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launches%}",
"a.DayOfWeek":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayofweek%}",
"a.HourOfDay":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.hourofday%}",
"a.OSVersion":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.osversion%}",
"a.CrashEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.crashevent%}",
"a.DeviceName":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.devicename%}",
"a.Resolution":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.resolution%}",
"a.CarrierName":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.carriername%}",
"a.InstallDate":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installdate%}",
"a.LaunchEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchevent%}",
"a.InstallEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installevent%}",
"a.UpgradeEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.upgradeevent%}",
"a.DaysSinceLastUse":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastuse%}",
"a.DailyEngUserEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dailyenguserevent%}",
"a.DaysSinceFirstUse":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincefirstuse%}",
"a.PrevSessionLength":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.prevsessionlength%}",
"a.MonthlyEngUserEvent":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.monthlyenguserevent%}",
"a.DaysSinceLastUpgrade":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastupgrade%}",
"a.LaunchesSinceUpgrade":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchessinceupgrade%}",
"a.ignoredSessionLength":"{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.ignoredsessionlength%}"
}
}
}
}
Attach data JSON for notification requests
{
"notifications[*]": {
"parameters": {
"a.appID": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.appid%}",
"a.locale": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.locale%}",
"a.RunMode": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.runmode%}",
"a.Launches": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launches%}",
"a.DayOfWeek": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayofweek%}",
"a.HourOfDay": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.hourofday%}",
"a.OSVersion": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.osversion%}",
"a.CrashEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.crashevent%}",
"a.DeviceName": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.devicename%}",
"a.Resolution": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.resolution%}",
"a.CarrierName": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.carriername%}",
"a.InstallDate": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installdate%}",
"a.LaunchEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchevent%}",
"a.InstallEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.installevent%}",
"a.UpgradeEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.upgradeevent%}",
"a.DaysSinceLastUse": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastuse%}",
"a.DailyEngUserEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dailyenguserevent%}",
"a.DaysSinceFirstUse": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincefirstuse%}",
"a.PrevSessionLength": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.prevsessionlength%}",
"a.MonthlyEngUserEvent": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.monthlyenguserevent%}",
"a.DaysSinceLastUpgrade": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.dayssincelastupgrade%}",
"a.LaunchesSinceUpgrade": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.launchessinceupgrade%}",
"a.ignoredSessionLength": "{%~state.com.adobe.module.lifecycle/lifecyclecontextdata.ignoredsessionlength%}"
}
}
}
- Click on Keep Changes.
Save the rule and republish the configuration
After you finish your rule configuration:
- Click on Save.
- Republish your configuration to the desired environment.