# 10.1 Configure an event-based journey - Order Confirmation

Login to Adobe Journey Optimizer by going to [Adobe Experience Cloud](https://experience.adobe.com). Click **Journey Optimizer**.

![ACOP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-8daf9419deef804f9e816efc694a6fe4c6bef3fa%2Facophome.png?alt=media)

You'll be redirected to the **Home** view in Journey Optimizer. First, make sure you're using the correct sandbox. The sandbox to use is called `--aepSandboxId--`. To change from one sandbox to another, click on **PRODUCTION Prod (VA7)** and select the sandbox from the list. In this example, the sandbox is named **AEP Enablement FY22**. You'll then be in the **Home** view of your sandbox `--aepSandboxId--`.

![ACOP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-df76386e3eebdceeccee0f3853f02cdec4b997f1%2Facoptriglp.png?alt=media)

## 10.1.1 Create your event

In the menu, go to **Configurations** and click **Manage** under **Events**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-fd9e547981b1477942e081484e07cde92a2b0c50%2Foc30.png?alt=media)

On the **Events** screen, you'll see a view similar to this. Click **Create Event**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-3a2d7047c99984b4e2b950903c528918b3716d6b%2Foc31.png?alt=media)

You'll then see an empty event configuration.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d2d0d85e6a4f30e90b42f793a8999cf7d9d51eb7%2Foc32.png?alt=media)

First of all, give your Event a Name like this: `--demoProfileLdap--PurchaseEvent`, and add a description like this: `Purchase Event`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-6484ab7ade39d344707fad0f83315c3f1dac2f42%2Foc34.png?alt=media)

Next is the **Event Type** selection. Select **Unitary**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-fcf82cd05f33294a1426494448cc517935b68154%2Feventidtype1.png?alt=media)

Next is the **Event ID Type** selection. Select **System Generated**

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-2abd2efe830e039eba9e4a3a6aedc9758fd92c7d%2Feventidtype.png?alt=media)

Next is the Schema selection. A schema was prepared for this exercise. Please use the schema `Demo System - Event Schema for Website (Global v1.1) v.1`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-151e5d737604126f54d7778e3ae1e5d7cd342d86%2Foc35.png?alt=media)

After selecting the Schema, you'll see a number of fields being selected in the **Payload** section. Click the **Edit/Pencil** icon to add additional fields to this event.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-287ac3aebe9bdd6ed00264ce8952dd594fde0176%2Foc36.png?alt=media)

You'll then see this popup. You now need to check additional checkboxes in order to access additional data when this event gets triggered.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1aa43c27dbc5ccb43affa94f5a63d73547e59e48%2Foc37.png?alt=media)

First of all, check the checkbox on the line `--aepTenantId--`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7cf8d827e0fab4ec7c90e1653f0fe416584364f3%2Foc38.png?alt=media)

Next, scroll down and check the checkbox on the line `productListItems`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-817db8684bb21b3acea4ebf7933cb995436a5cd8%2Foc39.png?alt=media)

Next, scroll down and check the checkbox on the line `commerce`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-96653081af31f5f0ea08ee2105a1ee01b133346f%2Foc391.png?alt=media)

Next, click **Ok**.

You'll then see that additional fields have been added to the event. Click **Save**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-514b9804a62e779c7fa5e74829ec59938b5495ae%2Foc40.png?alt=media)

Your new event is then shared and you'll see your event in the list of available events now.

Click on your event again to open up the **Edit Event** screen again. Hover over the **Payload** field again to see the 3 icons again. Click on the **View Payload** icon.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0ae78227924c61fb74e46f32ce2f027ff526cb7c%2Foc41.png?alt=media)

You'll now see an example of the expected payload. Your event has a unique orchestration eventID, which you can find by scrolling down in that payload until you see `_experience.campaign.orchestration.eventID`.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d46901a5388aa684db4cf5c9e7ce0d74f63118da%2Foc42.png?alt=media)

The event ID is what needs to be sent to Adobe Journey Optimizer in order to trigger the journey that you'll build in the next step. Write down this eventID, as you'll need it in one of the next steps. `"eventID": "ef6dd943c94fe1b4763c098ccd1772344662f2a9f614513106cb5ada8be36857"`

Click **Ok**, followed by **Cancel**.

Your event is now configured and ready to be used.

## 10.1.2 Create your journey

In the menu, go to **Journeys** and click **Create Journey**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c6c06444629caf28df26003ce552a1c6c7e37d88%2Foc43.png?alt=media)

You'll then see this. Give your journey a name. Use `--demoProfileLdap-- - Order Confirmation journey`. Click **OK**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-3ed1bdf35abc2286b7659555d534fbfa458eb206%2Foc45.png?alt=media)

First, you need to add your event as the starting point of your journey. Search for your event `--demoProfileLdap--PurchaseEvent` and drag and drop it onto the canvas. Click **OK**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d57bc9832446d412a8c755bba2795d75135ec552%2Foc46.png?alt=media)

Next, under **Actions**, search for the **Email** action and add it onto the canvas.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-23af752553aa81d015cf59fabaa6c173ac6ded85%2Foc47.png?alt=media)

Set the **Category** to **Marketing** and select an email surface that enables you to send email. In this case, the email surface to select is **Email**. Ensure that the checkboxes for **Clicks on email** and **email opens** are both enabled.

![ACOP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d6b79783d5b7b777ebb09d0f62eda227da1d3d86%2Fjourneyactions1.png?alt=media)

The next step is to create your message. To do that, click **Edit content**.

![ACOP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-57c556495667625110b275ac648b54cf2cc3183e%2Fjourneyactions2.png?alt=media)

You now see this. Click the **Subject line** text field.

![ACOP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-eb000ac89a0bc2b61f7e813d13f32c9e0f418b76%2Fjourneyactions3.png?alt=media)

In the text area start writing **Thanks for your order,**

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c1c6c75c643a41e36e52c8c5e191ad38b6f478da%2Foc5.png?alt=media)

The subject line is not done yet. Next you need to bring in the personalization token for the field **First name** which is stored under `profile.person.name.firstName`. In the left menu, scroll down to find the **Person** > **Full name** > **First name** field and click on the **+** icon to add the personalization token into the subject line. Click **Save**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-275bbac1a79729979fda68eaf100bb811524d00f%2Foc6.png?alt=media)

You'll then be back here. Click **Email Designer** to create the email's content.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-982035416ff39b6e2205511b7f59cef9c2eef689%2Foc7.png?alt=media)

In the next screen, click **Design from scratch**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-98588203114a686ed0098c104a25ce5b37fcb27d%2Foc8.png?alt=media)

In the left menu, you'll find the structure components that you can use to define the structure of the email (rows and columns).

Drag and drop 8 times a **1:1 column** on the canvas, which should give you this:

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f28a4e434b663960a00c76a0d8eb47846ffb8287%2Foc9.png?alt=media)

Go to **Content Components**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1d82ba02fb58a0c8780c95e8800f95d73909a613%2Foc10.png?alt=media)

Drag and drop an **Image** component on the first row. Click **Browse**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-a8967acf28a873ca9c28889f03d31bfaae3d9fc9%2Foc11.png?alt=media)

Go to the folder **enablement-assets**, select the file **luma-logo.png** and click **Select**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f9693af5844b1ecae1e45df7efd4a71a7ad6bdb4%2Foc12.png?alt=media)

You're now back here. Click your image to select it and then use the **Size** slider to make the logo image a bit smaller.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-cd1d7373f2f6df3b0d8cd729dac396fb8b47a1dc%2Foc13.png?alt=media)

Go to **Content Components** and drag and drop an **Image** component on the second row. Select the **Image component** but DON'T click Browse.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-879e685e2b76bc08a28a0932e5c3ddfcea01b60b%2Foc15.png?alt=media)

Paste this image URl in the field **Source**: `https://parsefiles.back4app.com/hgJBdVOS2eff03JCn6qXXOxT5jJFzialLAHJixD9/29043bedcde632a9cbe8a02a164189c9_preparing.png`. This image is hosted outside of Adobe.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-28d74389c98e3a7da56bf90fc06283923d98142b%2Foc14.png?alt=media)

When you change the scope to another field, the image will be rendered and you'll see this:

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b8fa054860a8a736a74eed3787d25507a1c92424%2Foc16.png?alt=media)

Next, go to **Content Components** and drag and drop a **Text** component on the third row.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-14fcf00f9cd9f65f697f456dbd79e64a9157bb0d%2Foc17.png?alt=media)

Select the default text in that component **Please type your text here.** and replace it by the below text:

```
You’re one step closer!

Hi 

We've received your order details!

We will also send you a separate email containing your VAT Invoice.

We'll be back in touch with you as soon as we've finished packing your package. Please read carefully the Order Information detailed below.
```

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c43f3a9177d650d83c3cdf6a5c1643964e73fb6d%2Foc18.png?alt=media)

Put the cursor next to the text **Hi** and click **Add Personalization**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-44ebbef8c58e4efa4c35e6d54fb73ad31154ab59%2Foc19.png?alt=media)

Navigate to the **Person** > **Full name** > **First name** field and click on the **+** icon to add the personalization token into the subject line. Click **Save**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c8527b24b83cdf44a9038305bfb0fd757c872023%2Foc20.png?alt=media)

You'll then see this:

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d25b770d00d6ad93bad46ca92f6451bb6281af90%2Foc21.png?alt=media)

Next, go to **Content Components** and drag and drop a **Text** component on the fourth row.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-91b846dcd138da0789bdfdf627008d1a79dba732%2Foc22.png?alt=media)

Select the default text in that component **Please type your text here.** and replace it by the below text:

`Order Information`

Change the font size to **26px** and center your text in this cell. You'll then have this:

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0c1b97eae807dee152bc0714b51b144caeda3bbc%2Foc23.png?alt=media)

Next, go to **Content Components** and drag and drop an **HTML** component on the fifth row. Click the HTML component and then click **Show the source code**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-cebfa401c637bd54ebae05588c95547de412cccc%2Foc24.png?alt=media)

In the **Edit HTML** popup, paste this HTML:

`<table><tbody><tr><td><b>Items purchased</b></td><td></td><td><b>Quantity</b></td><td><b>Subtotal</b></td></tr><tr><td colspan="4" width="500"><hr></td></tr></tbody></table>`

Click **Save**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-a6eccfd6009bbcdc796be40c8c9434150b0848b3%2Foc25.png?alt=media)

You'll then have this. Click **Save** to save your progress.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-9c2d341ddc347d3656db2d14fe086dffa4dc8be0%2Foc26.png?alt=media)

Go to **Content Components** and drag and drop an **HTML** component on the sixth row. Click the HTML component and then click **Show the source code**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c0f72042f2863260c57a6d6238ff63068ac88b05%2Foc57.png?alt=media)

In the **Edit HTML** popup, paste this HTML:

`{{#each xxx as |item|}}<table width="500"><tbody><tr><td><img src="{{item.--aepTenantId--.core.imageURL}}" width="100"></td><td><table><tbody><tr><td><b>{{item.name}}</b><br>{{item.--aepTenantId--.core.subCategory}}<br><b>{{item.priceTotal}}</b><br>&nbsp;<br>Article no: {{item.SKU}}</td></tr></tbody></table></td><td>{{item.quantity}}</td><td><b>{{item.priceTotal}}</b></td></tr></tbody></table>{{/each}}`

You'll then have this:

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f15c39eca73938d4738ce1d344d4e7d704b957eb%2Foc58.png?alt=media)

You now have to replace **xxx** by a reference to the productListItems object that is part of the event that triggers the journey.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-316cb4b63b73e3a30f96301fe01b3e06d459670d%2Foc59.png?alt=media)

First, delete **xxx** in your HTML code first.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-2a38fa23326ed144a6dae5e3c0f01fd3cc44dd84%2Foc60.png?alt=media)

In the left menu, click **Contextual attributes**. This context is passed to the message from the journey.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-6218e0dc7a1cd3da32e52635bb8dd105f06cdca8%2Foc601.png?alt=media)

You'll then see this. Click the arrow next to **Journey Orchestration** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-96efae006d8f9be96c0c52083cdd9a7b0cdeace8%2Foc61.png?alt=media)

Click the arrow next to **Events** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-080272fe1e4c95aec95775b6829f690c86bf47a2%2Foc62.png?alt=media)

Click the arrow next to `--demoProfileLdap--PurchaseEvent` to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-89e1baf4830828903bd0bfd1067f4672aa47e81c%2Foc63.png?alt=media)

Click the arrow next to **productListItems** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-424017c6d50f4045a9bb6352bb8f5dfa8a44e86c%2Foc64.png?alt=media)

Click the **+** icon next to **Name** to add it to the canvas. You'll then have this. You now need to select **.name** as indicated in the below screenshot, and then you should remove **.name**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7ce841ea6cf340a36ceb76bca6efcf4191a0d87c%2Foc65.png?alt=media)

You'll then have this. Click **Save**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-71a72c228ae3e3d971e588a199272cdacf5839e5%2Foc66.png?alt=media)

You'll be back in the Email Designer now. Click **Save** to save your progress.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-adb2b811a386ab7eb0553f82ee2b1effab183710%2Foc67.png?alt=media)

Next, go to **Content Components** and drag and drop an **HTML** component on the seventh row. Click the HTML component and then click **Show the source code**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7ce9feaeed489111b33982c6ec1f87cf2a93fb59%2Foc68.png?alt=media)

In the **Edit HTML** popup, paste this HTML:

`<table><tbody><tr><td><b>Subtotal</b><br>Delivery charge (included)</td><td align="right"><b>xxx</b><br><b>5</b></td></tr><tr><td colspan="2" width="500"><hr></td></tr><tr><td><b>Total including VAT</b></td><td align="right"><b>xxx</b></td></tr></tbody></table>`

There are 2 references of **xxx** in this HTML code. You now have to replace each **xxx** by a reference to the productListItems object that is part of the event that triggers the journey.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-64c1020723b124a107069a590d5cf4b8bf68baba%2Foc69.png?alt=media)

First, delete the first **xxx** in your HTML code.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-a8b0a77e02c157f65d1a612641e244ffb8b9927e%2Foc71.png?alt=media)

In the left menu, click **Contextual Attributes**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-c66d7fb7090080552732dc48ffc3ea7e3d6f3419%2Foc711.png?alt=media)

Click the arrow next to **Journey Orchestration** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-8dbf08c7a4bbca782083165470e09e51670daa48%2Foc72.png?alt=media)

Click the arrow next to **Events** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-08e1a17c70f49e2874b4672bad206abd52f80cd2%2Foc722.png?alt=media)

Click the arrow next to `--demoProfileLdap--PurchaseEvent` to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7f0fff6a66852ed46e63eaa899498a4372d3e923%2Foc73.png?alt=media)

Click the arrow next to **Commerce** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-4c102651739b6ecc8e42052090fefc6a3292913d%2Foc733.png?alt=media)

Click the arrow next to **Order** to drill deeper.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-58d300a7bb261fc2c6dee809f3dd3e3a4a3e1d35%2Foc74.png?alt=media)

Click the **+** icon next to **Price Total** to add that to the canvas.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-3376c19e22077257a60cb8cbba2c2bbd03ee9cf3%2Foc75.png?alt=media)

You'll then have this. Now delete the second **xxx** in your HTML code.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-e8b25520db1bfc7e99c2b60b7b5f64444eadbd89%2Foc76.png?alt=media)

Click the **+** icon next to **Price Total** again to add that to the canvas.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1791e80dce2132b4c6ee3df067935d45bd6cf6e6%2Foc77.png?alt=media)

You can also add the field **Currency** from within the **Order** object onto the canvas, as you can see here. When you're done, click **Save** to save your changes.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-e756cd0fff9caf1d12092f7c422fe1409c23bdf5%2Foc771.png?alt=media)

You'll then be back in the Email Designer. Click **Save** again.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-909b88756f081ee55d82d84f0efe3d44fe162bf4%2Foc78.png?alt=media)

Go back to the message dashboard by clicking the **arrow** next to the subject line text in the top-left corner.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-3124cedb733fa37f4620ad0d6802e9aac2210bbe%2Foc79.png?alt=media)

Click the arrow in the top left corner to go back to your journey.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b1cba6c707f893b6b21b019e6bdb77114ed751a6%2Foc79a.png?alt=media)

Click **Ok** to close your email action.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-969619b7677fa6b1121e46d3d5fa98da2760c568%2Foc79b.png?alt=media)

Click **Publish** to publish your journey.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-509668302693d6c868d1097fa27d2bf902d144f1%2Foc511.png?alt=media)

Click **Publish** again.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-25b306f462a3f15abc1a0af81dfc55d661adc1e8%2Foc512.png?alt=media)

Your journey is now published.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7a43bd9a7ec77d8118561b0e9732216e2d67833c%2Foc513.png?alt=media)

## 10.1.5 Update your Adobe Experience Platform Data Collection Client property

Go to [Adobe Experience Platform Data Collection](https://experience.adobe.com/launch/) and select **Tags**.

This is the Adobe Experience Platform Data Collection Properties page you saw before.

![Properties page](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-67af14bbab8a61f914f69c0b5feacb86eba006fc%2Flaunch1.png?alt=media)

In module 0, Demo System created two Client properties for you: one for the website and one for the mobile app. Find them by searching for `--demoProfileLdap--` in the **\[Search]** box. Click to open the **Web** property.

![Search box](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-20d10cda002ee97b6575dd044ca4bc62f762d9c4%2Fproperty6.png?alt=media)

Go to **Data Elements**. Search and open the data element **XDM - Purchase**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-e694648177d0416eda9d254c14117b636e51bd8e%2Foc91.png?alt=media)

You'll then see this. Navigate to the field **\_experience.campaign.orchestration.eventID** and fill out your eventID here. The eventID to fill out here, is the eventID you created as part of exercise 10.1.2. Click **Save** or **Save to Library**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-be90aafd933e2a475252fe1357d5b4a1418983f8%2Foc92.png?alt=media)

Save your changes in your Client property, and then publish your changes by updating your development library.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b49851c4ad5e48111262d3def0e70eccd0db6845%2Foc93.png?alt=media)

Your changes are now deployed and can be tested.

## 10.1.6 Test your order confirmation email using the demo website

Let's test the updated journey by buying a product on the demo website.

Go to <https://builder.adobedemo.com/projects>. After logging in with your Adobe ID, you'll see this. Click your website project to open it.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1f113c071919d66b9bb4e4b97d5284282e997b7a%2Fweb8.png?alt=media)

On the **Screens** page, click **Run**.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-e2d1893e99187ffdd2dbf9074d64f38bb321373e%2Fweb2.png?alt=media)

You'll then see your demo website open up. Select the URL and copy it to your clipboard.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-9cfc19bfac7a72c64f3e750663b79c2a4acc8723%2Fweb3.png?alt=media)

Open a new incognito browser window.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-48a8d19f45654fc4442dc4aad8b2a193b3f34d2f%2Fweb4.png?alt=media)

Paste the URL of your demo website, which you copied in the previous step. You'll then be asked to login using your Adobe ID.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1bb88b0513b9fac2ed6224499ac33da7d3b67d43%2Fweb5.png?alt=media)

Select your account type and complete the login process.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-fbf755c12242e86c6787bb213da12d99795bd476%2Fweb6.png?alt=media)

You'll then see your website loaded in an incognito browser window. For every demonstration, you'll need to use a fresh, incognito browser window to load your demo website URL.

![DSN](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-def68e96912fd147fc6d7c9c8278935f0a00fc87%2Fweb7.png?alt=media)

Click the Adobe logo icon in the top left corner of your screen to open the Profile Viewer.

![Demo](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-9328facfce02938dea4064997a7e05c08041ec4b%2Fpv1.png?alt=media)

Have a look at the Profile Viewer panel and the Real-time Customer Profile with the **Experience Cloud ID** as the primary identifier for thi currently unknown customer.

![Demo](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-a2e9cb3229702f6bfff5cabd055d614e8835a64b%2Fpv2.png?alt=media)

Go to the Register/Login page. Click **CREATE AN ACCOUNT**.

![Demo](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-07768be8ef3e79b5d1256ae255909fd099b7c4f8%2Fpv9.png?alt=media)

Fill out your details and click **Register** after which you'll be redirected to the previous page.

![Demo](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-bc5843e40e3bd44f91f8d36d655a629f019541fd%2Fpv10.png?alt=media)

Add any product to your cart, and go to the **Cart** page. Click **Proceed to checkout**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-7203e6d014385cd6937c995cb1a240e44e9c2ecf%2Fcart1.png?alt=media)

Next, verify the fields on the checkout page and click **Checkout**.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f70eca0cf1288933fe890c34de4fd26f2251a949%2Fcart2.png?alt=media)

You'll then receive your order confirmation email within seconds.

![Journey Optimizer](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-6f47cbccf30f4a120c2371cf2abae11f5841d436%2Foc98.png?alt=media)

You have finished this exercise.
