Set up Adobe Target A/B testing in AEM Mobile apps.

Adobe Target is the Adobe Marketing Cloud solution that lets you customize your mobile app experience by providing different experiences to different audiences to set up an A/B test. You can then maximize revenue by comparing the results of two or more experiences to determine which one performs best with different audiences. For example, you might target promotional content A at 50% of the audience and promotion content B at the remaining audience in order to determine which promotional content is more engaging.

In an AEM Mobile app, you can set up an A/B testing in either HTML articles or dynamic banners. For example, you could create a dynamic banner with an image carousel that displays content A to one audience and content B to a different audience.

Requirements

  • AEM Mobile Master Admin account
  • Digital Marketing Cloud license that provides access to Adobe Target

Define the Target activity

Define the Adobe Target activity that you will use to determine which content in an AEM Mobile dynamic banner or HTML article appears.

  1. Sign in to the Mobile Marketing Dashboard (https://mobilemarketing.adobe.com).

  2. Navigate to Target > Activities.

     

    You can manage Adobe Target Activities from either Mobile Marketing Dashboard or the Adobe Target Dashboard. See Access Target from Adobe Marketing Cloud in Adobe Target Help.

    For Adobe Target, make sure that you have an Editor or Approver role so that you can create or edit Target activities.

  3. Create a new Target activity or choose an existing activity.

    See Activities in Adobe Target Help.

  4. Specify activity settings.

    • Specify the activity Name.
    • Set Active to On.
    • Set the Start and End date.
    • Set the Audience if needed. See Audiences in Adobe Target Help.
    • Set the Content Location, which is the name of the Target mbox. The default mbox name is target-global-mbox. If you have a custom mbox name, specify it. See Understanding the Global mbox in Adobe Target Help.
    • Specify the Test Experiences. See Experiences in Adobe Target Help. When you add an experience, you specify an Offer that includes HTML code. See Offers in Adobe Target Help.
    • Set the Success Location, which is the name of a Target mbox.
  5. Click Save.

Configuring the Target activity to work in AEM Mobile content

After you create your Adobe Target activity, you need to perform several tasks to allow the HTML content in the AEM Mobile app to use the Target activity.

  1. In the Mobile Marketing Dashboard, select Manage Apps. If you have not created an app, click Add and add your app. Or, click the app to edit it.

  2. In the SDK Target Options section of app settings, select Use HTTPS, and specify the Client Code and Request Timeout.

    Make sure the Use HTTPS option is checked in the Manage App Settings page in Adobe Mobile Services. If HTTPS isn't enabled, iOS calls might be blocked unless you whitelist the Target server.

    The Client Code is unique to your account or company. You can find your Client Code by looking at your Target mbox settings. Open your Target activity and choose View Reports to go to the Adobe Target Dashboard. Select the activity and choose Setup > Implementation > Edit mbox.js Settings. The Client Code for your account is listed in the mbox.js settings.

    The Request Timeout option specifies the length of time, in seconds, that must elapse between app launches before the launch is considered a new session.

  3. Rebuild your app using On-Demand Services.

    Whenever you configure app settings in the Marketing Cloud Dashboard, you must rebuild your app in On-Demand Services in order to pick up the app configuration changes. Note that you can make changes to Target settings (such as creating activities) without having to rebuild the app.

  4. Edit the dynamic banner or HTML article to enable the Target activity.

    • In the article or dynamic banner properties, make sure that Enable extensibility features is selected.
    • Include <script type="text/javascript" src="cordova.js"></script> in the HTML code to enable Cordova plugins and the Mobile Services SDK.
    • Enable the Target support files that you include in your HTML article or dynamic banner. The cordova.js file is included automatically in the app. The ADB.targetLoadRequest() cannot be called until the underlying Cordova library is initialized. To do this, include a support file called index.js. This support file adds a listener and waits until the Cordova library is loaded. Once the Cordova library is ready, it calls initAdobeMC(), where the ADB.targetLoadRequest() is called or any other ADB method contained in ADB_Helper.js. This code is shown in the target.js file.
    <script type="text/javascript" src="cordova.js"></script>        
    <script type="text/javascript" src="js/target.js"></script> 
    <script type="text/javascript" src="js/index.js"></script>

    Загрузить

    For details about the Target methods used, see PhoneGap Plug-in Methods in Adobe Marketing Cloud Help.

  5. Test your dynamic banner or HTML article in a custom app.

Эта работа лицензируется в соответствии с лицензией Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported  На посты, размещаемые в Twitter™ и Facebook, условия Creative Commons не распространяются.

Правовые уведомления   |   Политика конфиденциальности в сети Интернет