Test your journey in Adobe Journey Optimizer
In this step, you will test the journey you created in Adobe Journey Optimizer by using a simple HTML form. This form captures a user's investment preference and triggers an event ingestion into Adobe Experience Platform. You will verify that the journey correctly sends a personalized email confirmation to the user, acknowledging their investment choice. You will also deploy sample assets and set up a Node.js application to handle form submissions and send data to Adobe Experience Platform.
Deploy the sample assets
If you don’t have Node.js installed, download and install it from here
Verify installation by running:
node -v
npm -v
Set up the project folder
Create a new directory for the sample app using the following commands:
-
mkdir trigger-journey -
cd trigger-journey
Initialize the Project
npm init -y
Install the required frameworks
npm install express dotenv axios cors
Copy asset files
- Unzip and place the contents of project-root.zip in the trigger-journey folder.
- Create a folder called public in the trigger-journey folder.
- Update the .env file with the appropriate values. These values are available from the cURL command downloaded while creating the HTTP source connection.
- Unzip the contents of index.zip into the public folder
Run the server
- Make sure you are in the trigger-journey directory.
- Execute the command node server.js
- Point your browser to web page
- Fill and submit the form. The journey gets triggered,and an email is sent to the email id entered in the form.
.
Congratulations!!! on successfully testing your journey in Adobe Journey Optimizer. You have learned how to capture user preferences and send personalized email confirmations using Adobe Experience Platform. This concludes the module.