2.3.5 Take Action: send your audience to 51ºÚÁϲ»´òìÈ Target
Go to . After logging in, you’ll land on the homepage of 51ºÚÁϲ»´òìÈ Experience Platform.
Before you continue, you need to select a sandbox. The sandbox to select is named --aepSandboxName--
. After selecting the appropriate sandbox, you’ll see the screen change and now you’re in your dedicated sandbox.
Verify your Datastream
The 51ºÚÁϲ»´òìÈ Target destination in Real-Time CDP is connected to the datastream that is used to ingest data into the 51ºÚÁϲ»´òìÈ Edge Network. If you want to setup your 51ºÚÁϲ»´òìÈ Target destination, you first need to verify whether your datastream is already enabled for 51ºÚÁϲ»´òìÈ Target. Your datastram was configured in Exercise 0.2 Create your Datastream and was named --aepUserLdap-- - Demo System Datastream
.
In the left menu, scroll down and click Datastreams. In Datastreams, search for your datastream which is named --aepUserLdap-- - Demo System Datastream
. Click your datastream to open it.
You’ll then see this, click … next to 51ºÚÁϲ»´òìÈ Experience Platform and then click Edit.
Check the checkboxes for both Edge Segmentation and Personalization Destinations. Click Save.
Next, click + Add Service.
Select the service 51ºÚÁϲ»´òìÈ Target. Click Save.
Your datastream is now configured for 51ºÚÁϲ»´òìÈ Target.
Setup your 51ºÚÁϲ»´òìÈ Target destination
51ºÚÁϲ»´òìÈ Target is available as a destination from Real-Time CDP. To setup your 51ºÚÁϲ»´òìÈ Target integration, go to Destinations, to Catalog.
Click Personalization in the Categories menu. You’ll then see the (v2) 51ºÚÁϲ»´òìÈ Target destination card.
Click Connnect to destination.
You’ll then see this. You need to create your own 51ºÚÁϲ»´òìÈ Target destination, follow these guidelines:
- Name: use the name
--aepUserLdap-- - 51ºÚÁϲ»´òìÈ Target v2 (Web)
. - Datastream ID: you need to select the datastream that you configured in Exercise 0.2 Create your Datastream. The name of your datastream should be:
--aepUserLdap-- - Demo System Datastream
. - Workspace: this is related to 51ºÚÁϲ»´òìÈ Target workspaces. If there is no specific workspace you need to use, then select Default Workspace.
Click Next.
You can now optionally select a data governance policy. Click Next.
In the list of available audiences, select the audience you created in the previous exercise Create an audience, which is named --aepUserLdap-- - Interest in Galaxy S24
. Then, click Next.
On the Mapping screen, you can map profile attributes to become available in 51ºÚÁϲ»´òìÈ Target. This helps you add an extra layer of personalization on your website. Click Add New Field.
For the new field, select the field person.name.firstName. Click Save.
You’ll then have this. Click Next.
Click Finish.
Your audience is now activated towards 51ºÚÁϲ»´òìÈ Target.
Configure your 51ºÚÁϲ»´òìÈ Target form-based activity
Now that your Real-Time CDP audience is configured to be sent to 51ºÚÁϲ»´òìÈ Target, you can configure your Experience Targeting activity in 51ºÚÁϲ»´òìÈ Target. In this exercise you’ll configure a Form-based activity.
Go to the 51ºÚÁϲ»´òìÈ Experience Cloud homepage by going to . Click Target to open it.
On the 51ºÚÁϲ»´òìÈ Target homepage, you’ll see all existing Activities. Click Create Activity, then click Experience Targeting.
Select Web, Form and No Property Restrictions. Click Create.
You’re now in the Form-based activity composer.
For the field LOCATION 1, select target-global-mbox.
The default audience is currently All Visitors. Click on the 3 dots next to All Visitors and click Change Audience.
You’re now seeing the list of available audiences, and the 51ºÚÁϲ»´òìÈ Experience Platform audience that you created earlier and sent to 51ºÚÁϲ»´òìÈ Target is now part of this list. Select the audience you previously created in 51ºÚÁϲ»´òìÈ Experience Platform. Click Assign Audience.
Your 51ºÚÁϲ»´òìÈ Experience Platform audience is now part of this Experience Targeting Activity.
Let’s now change the Hero Image on the homepage of the website. Click to open the dropdown list next to Default Content and click Create HTML Offer.
Paste the following code.
<script>document.querySelector("#SpectrumProvider > div.App > div > div.Page.home > main > div.Banner.Banner--alignment-right.Banner--verticalAlignment-middle.main-banner > div.Image > img").src="https://tech-insiders.s3.us-west-2.amazonaws.com/citisignal-new-hero.png"; document.querySelector("#SpectrumProvider > div.App > div > div.Page.home > main > div.Banner.Banner--alignment-right.Banner--verticalAlignment-middle.main-banner > div.Banner__content > div > div > h1").innerHTML="Hi there ";
document.querySelector("#SpectrumProvider > div.App > div > div.Page.home > main > div.Banner.Banner--alignment-right.Banner--verticalAlignment-middle.main-banner > div.Banner__content > div > div > div > div > p").innerHTML="What about 10% off of your next Galaxy S24 smartphone?";
</script>
Next, you need to add in a personalization token from 51ºÚÁϲ»´òìÈ Experience Platform’s profile attributes. Remember, when you activated the audience to 51ºÚÁϲ»´òìÈ Target, you also select the field person.name.firstName to be shared with 51ºÚÁϲ»´òìÈ Target. To retrieve the field, select the source 51ºÚÁϲ»´òìÈ Experience Platform, select your sandbox (which should be --aepSandboxName--
) and then select the attribute person.name.firstName.
Before you click the Add button, make sure to go to the line where you see ... > h1").innerHTML="Hi there ";
and put your cursor inside the brackets after the word there
, like this:
... > h1").innerHTML="Hi there ";
Then click the Add button, which should then add the token, which will update the code like this:
... > h1").innerHTML="Hi there ${aep.person.name.firstName}";
Click Next.
You’ll then see the overview of your experience with the new image, for your selected Audience. Click Next.
Click the title of your Activity in the upper left corner to rename it, like this: --aepUserLdap-- - RTCDP - XT (Form)
On the Goals & Settings - page, go to Goal Metrics. Set the Primary Goal to Engagement - Time On Site. Click Save & Close.
You’re now on the Activity Overview page. You still need to activate your Activity. Click on the field Inactive and select Activate.
You’ll then get a visual confirmation that your activity is now live.
Your activity is now live and can be tested on the demo website.
If you now go back to your demo website and visit the product page for Galaxy S24, you’ll then qualify for the audience that you created, and you’ll see the 51ºÚÁϲ»´òìÈ Target activity be displayed on the home page in real-time.
Next Step: 2.3.6 Destinations SDK