L5 Experience Targeting Campaign - adobe-target/mobile GitHub Wiki

Level Beginner
Time 10 mins

Experience Targeting (XT) is valuable for defining rules that target a specific experience or content to a particular audience. Several rules can be defined in an activity to deliver different content variations to different audiences.

Imagine you have a travel app where your users can be in one of the four experience types - Canyon, Beach, Mountain, and River. We will now create an XT activity to show different experiences to users in different member levels.

mobile-l5-xt-story

Step 1 : Create your Target location for this activity

1a. Open Xcode and navigate to XTViewController.m. The next few steps are similar to what you did for the AB activity creation.

mobile-l5-xt-nav

1b. Scroll down to the method with the name - (void)XTActivity. The code to create a Target Location is already in place. This snippet makes a call to the Target server and gets the content for that particular location. **All you have to do is uncomment. **

  • Go to line #29 and delete "/*".
  • Go to line #53 and delete "*/".

After you delete line #29 and #53, your method should look like this

mobile-l5-uncommen-method

1c. Here a1-mobile-xt is the name of the target location. Replace a1 with your unique user number. Use the same user number you used for the AB activity.

mobile-l5-replace-user-number

Step 2 : Create your XT Activity in the UI.

2a. Go to the Target UI.

2b. Click the blue 'Create Activity' button and then select Experience Targeting.

mobile-l5-create-xt

2c. Select the 'Form' option and click Next.

mobile-l5-select-form

2d. Rename your activity. Prefix your activity with your user number followed by L750. (Eg: K7-L750-XT). Select or type your location (eg: k7-L750-xt) in the box. If your location isn't showing up in the dropdown, that is alright.

mobile-l5-rename-select-location


Since all the participants are sharing the same account, it is very important to add the prefix (Eg: #-L750) to all your activities


2e. Click on the three small dots and select 'Change Audience'. This will open the Audience library

mobile-l5-rename-change-audience

2f. In the audience library, type 'canyon' in the search box. Select the 'L750_XT_Canyon' audience and click 'Save'.

mobile-l5-rename-select-audience

2g. Click the small arrow after 'Default Content' and select 'Change JSON Offer'. This will open the Offer Library.

mobile-l5-rename-select-audience

2g1. Select the silver member offer from the library

mobile-l5-rename-select-audience

2h. Click on 'Add Experience Targeting', repeat the previous 2 steps and similarly add your "canyon", "beach", "mountain", and "river" audiences and offers. After you complete this step, your screen should look like this

mobile-l5-create-review

2i. Click on 'Next' and you will be taken to the 'Target' step of the workflow. Your screen should look like this.

mobile-l5-target-review

2j. Click 'Next' to go to the Goal & Settings screen. On this screen, select 'Adobe Target' as your reporting source.

Select Viewed an mbox > conversion > order-complete

mobile-a1-review-target-reporting

In this lab exercise, we are using Target as a reporting source. You also have the option to use Analytics as a reporting source and choose one of your analytics metrics as your goal. While we won't be doing that in this lab, we will review the set up process and the results in Analytics in one of the subsequent exercises.

2k. Click on 'Next', wait a few seconds for the activity to sync. Then click 'Activate'

mobile-l5-activate

Step 3: Verify your Experience Targeting Activity

3a. Go to Xcode and press the play button.

3b. Target will now randomly assign you into one of the four member experiences. Tada! You've successfully created your experience targeting activity. This demo app randomizes your member level. So you might see a different experience when you come back.