In this lesson, we’ll go into the Target interface and build audiences and offers for the three locations we implemented in the previous lessons.
At the end of this lesson, you will be able to:
More specifically, in this lesson we will create audiences and offers needed to accomplish the personalization use cases defined at the beginning of the tutorial. We want to use the Home and Search screens to help app users book their trips, and we want to use the Thank You screen to display some relevant promotions based on the user’s destination. Here is a table representing what we will build in this lesson for each location:
Location | Audience | Offer |
---|---|---|
wetravel_engage_home | New Mobile App Users | “Select your Origin & Destination to search for available bus routes” |
wetravel_engage_search | New Mobile App Users | “Use filters to narrow down your search results” |
wetravel_engage_home | Returning Mobile App Users | “Welcome back! Use promo code BACK30 during checkout to get a 10% discount.” |
wetravel_engage_search | Returning Mobile App Users | default content |
wetravel_context_dest | Destination: San Diego | “DJ” |
wetravel_context_dest | Destination: Los Angeles | “Universal” |
If your company uses Properties and Workspaces to establish boundaries for personalizing apps and websites—and you implemented the at_property parameter in the last lesson—you should first make sure that you are in the correct Workspace before proceeding with this lesson. If you don’t use Properties and Workspaces, just ignore this step. Select the Workspace that you used in the previous lesson to copy the at_property value:
Now let’s create the audiences we will use to personalize the app.
Adobe Target Audiences are used to identify specific groups of visitors. Offers can then be targeted to those specific groups. For the first two locations, we’ll use a “New Users” audience:
Click Audiences in the top navigation.
Click the Create Audience button.
Enter New Mobile App Users as the audience name.
Select Add Rule.
Select a Custom rule.
Select a.Launches.
Select is less than.
Enter 5.
Save the new audience.
Follow the same steps listed above to create an audience for returning users.
Name the audience Returning Mobile App Users.
Use a.Launches is greater than or equal to 5 as the custom rule.
Save the new audience.
All Lifecycle metrics and dimensions collected in the Target mobile SDK are prepended with “a” (e.g., a.Launches) and are available in the “Custom” option of the drop-down menu and can be used to build audiences.
Next we will create a few audiences for some of the destinations offered by the We.Travel app. In the last lesson we passed the destination as a location parameter in the wetravel_context_dest location request. That parameter is available in the “Custom” option of the drop-down menu.
If a parameter you are expecting to see in the Custom dropdown does not appear in the Target interface, double-check that it is indeed being passed in the request. If you have verified that is in the request, but has not lazy-loaded into the Target interface, you can just type the parameter name and hit enter to continue defining your audience
Name the audience Destination: San Diego.
Use a custom rule with this definition: locationDest contains San Diego.
Save the new audience.
Now, let’s create offers to display these messages. As a reminder, offers are snippets of code/content, which are delivered in the Target response. They are most often created in the Target user interface, but can also be created via API or using the Experience Fragments integration with Adobe Experience Manager. In mobile apps, JSON offers are common. In this tutorial, we’ll be using HTML offers, which can be used to deliver any plaintext content (including JSON) into the app.
First, let’s create offers for the messages to New Users:
Click Offers in the top navigation.
Click Create.
Select HTML Offer.
Name the offer Home: Engage New Users.
Enter Select Source and Destination to search for available buses as the code.
Save the new offer.
Now let’s create the one offer for returning users (the second offer will be default content, which will display as nothing):
Name the offer Home: Returning Users.
Enter Welcome back! Use promo code BACK30 during checkout to get a 10% discount. as the HTML code.
Save the new offer.
When “DJ” is returned to the ThankYou activity, logic in the filterRecommendationBasedOnOffer() function will display a banner for “Rock Night with DJ SAM”:
When “Universal” is returned to the ThankYou activity, logic in the filterRecommendationBasedOnOffer() function will display a banner for “Universal Studios” will display:
Now we have our Audiences and Offers. In the next lesson, we’ll build activities that tie the locations, audiences, and offers together to create the personalized experiences!
NEXT : “Personalize Layouts” >