Show Menu

Lesson 3 - Streaming: Stream in Data using Launch


  • Learn how to integrate Adobe Experience Platform Launch onto a webpage
  • Create Launch rules to stream data to Experience Platform

Lesson Context

Once Luma has its customer data system set up on Experience Platform by defining schema to use, datasets to ingest data, and ingesting existing customer data, we now want to make sure that new Profile data (from sign-ups, updates, etc) and behavioral ExperienceEvent data (browsing habits, actionable triggers, etc) are recorded and updated in near real-time. We can do this by utilizing Adobe Experience Platform Launch on our website. For this exercise, we will see how we can bring in behavioral and profile data from website interactions into Adobe Experience Platform. We can flex our experience in creating new schema and new datasets from Lessons 1 & 2, and apply it to creating streaming datasets to use with Experience Platform Launch.

Lesson Resources

Launch and Luma

Some elements of Launch are pre-packaged for sake of time. Rules, Data Elements and Extensions are already populated with a few settings that we will add or update during this lab to demonstrate how Launch works.
Make sure that Fenix webserver is running with Navigate to to make sure that you have Luma running properly.

Exercise 3.1 - Creating Behavioral Schema, and Datasets for Streaming

  1. Since we will be streaming in data for this lab, we will need to create new datasets that are streaming-enabled, as well as a new schema for behavioral events with the ExperienceEvent class, which we'll name L778+[AccountID]_WebBehavior_Schema . Since we covered schema creation in Lesson 1 and dataset creation in detail in Lesson 2, we've put the correct POST calls into the Postman collection for you to run. First, open the Create Streaming Datasets folder in Lesson 3 , and send the Create Web Behavior Schema POST call. You should receive a response showing the structure of the ExperienceEvent, including a few mixins we've defined. This schema has also been enabled for Unified Profile as well.
  2. Next, we need to define the schema identity descriptor in order to tell Experience Platform what the main identifying field for data is in this schema, which here will be the ECID, or Experience Cloud ID that a user is auto-assigned within their browser session. Click Define Identity Descriptor and send the POST call.
  3. Send the POST call for Create Web Behavior Event Dataset , which includes the tag "streamingIngestionEnabled": "true" within it to enable data streaming. You should then get a Dataset ID in response:
  4. Do the same with the next call, Create User Signups Dataset , to create a new Profile-based dataset with "streamingIngestionEnabled": "true" in it as well.
  5. Then send a GET call to get the ExperienceEvent dataset details. Now you will have your WebBehavior Dataset ExperienceEvent dataset created:
  6. You can also GET the details of the User Signups Dataset Profile-based dataset that you just crated for Profile data streaming:
  7. Examples of the two datasets after creation in the Experience Platform UI is below:

Exercise 3.2 - Setting up a Launch Property

  1. Open Adobe Experience Platform Launch at
  2. Login with your Adobe ID, and ensure in the top right Organization selector that you are in Summit 2019 Platform Lab 03
  3. Find the property associated with your user number ( L778+### Property ) and open it. This property points to the URL "", which should be set up on your local machine prior to this lab. The property will open up and take you to the Launch property home screen.
  4. First, we need to set up a Launch library in the development environment. Go to the Publishing tab and click Add New Library .
  5. Next, name your library web publish and select Development as the environment.
  6. Launch requires us to select which elements in our Property that it should publish. This property already has several Data Elements and Rules set (we'll learn about this in a bit), so we need to click Add All Changed Resources at the bottom of the page to add every existing element to this library. Then, click Save & Build for Development .
  7. The last step is to select our new library as the working environment. In the top right drop down for Working Library , select our new web publish library. This will now update the library whenever we make any changes in the next steps.

Exercise 3.3 - Putting Launch into a website

  1. Now, we need to take a snippet of HTML to insert in your Luma site. This snippet will be how Launch sends data to the Experience Platform. Click the Environments tab from the home screen, and then click the small box icon to the right of the Development row.
  2. Click the "copy" square button to the right of the script textbox to copy this snippet to the clipboard.
  3. Open up the index.html and signup.html pages of your Luma site in your text/code editor, and paste this code into the <head> tags of each file. This will enable Launch to run its rules on these two pages. Remember to paste this snippet in BOTH files.

Exercise 3.4 - Setting up Launch Rules and Elements

  1. Go to the Data Elements tab. This is where we will define elements from our Luma site to pull in values - names, emails, IDs, descriptors, etc. There are already a few populated in here that we will be using when we send data to Experience Platform.
  2. Let's take a look at the extensions we will need for our Luma site. Click the Extensions tab. You'll see that the Core extension is there by default, and that we've already had the following extensions installed:
    1. Adobe Experience Platform - This is the extension needed to send data specifically to our Experience Platform instance
    2. Experience Cloud ID Service - This is the extension that allows us to identify the unique Experience Cloud ID attribute across all Adobe products
  3. We're going to need to configure the Adobe Experience Platform extension, so click Config on that box. Click on Create a streaming endpoint , and name it Launch Streaming Endpoint [AccountID] , with Source ID = Launch_[AccountID] , and then click Save .
  4. Select your streaming endpoint - in the text box, type your # and your endpoint should pop up. Select it and click Save to Library and Build .

Exercise 3.5 - Sending ExperienceEvent Data (behavioral data)

  1. Now, we have our streaming endpoint from our Luma site into Experience Platform defined and ready to go. The next step is to create triggers that will make actions happen on our Luma site. Go to the Rules tab. Take a look at the existing rules - we have two defined here. Look into Page Visit .
  2. You can see that the Event, Core - Page Bottom is triggered when the browser hits the bottom of the page. This stands in as a de-facto "page view" as the bottom of the page is automatically hit when the page renders. At the bottom, the Action flow shows two actions - one for Experience Cloud ID Service, and then one for Adobe Experience Platform.
  3. Click on the Experience Cloud ID Service action. You can see that it is setting the ECID to share across Adobe solutions with the ECID being sent to it from our "ECID" Data Element. Click Cancel and Discard changes (don't worry, no changes were made) to go back to the Rule editor.
  4. Now let's define data that we send to Experience Platform. Click on Adobe Experience Platform - Send Beacon . This action is sending an ExperienceEvent. You'll see that some of the variables and data elements populating those variables are already set - sending the ECID as an identity for the event, the name of the webpage currently viewed, and a timestamp of that action.
  5. There are two things here that we need to change. First, the dataset selected that we're sending data to needs to but changed. Click the dropdown and find your corresponding L778+[AccountID]_WebBehavior_Dataset dataset from earlier. You will get a warning to make sure the fields match, which you should assume is true here.
  6. Now let's add another variable to send in our beacon - the Language data element. Click on Add Another and create the following:
    1. variable: use the "target" icon to select the Environment - browserDetails - acceptLanguage schema field
    2. value: %Language% - (Select this from the list of data elements by clicking the round stack icon next to the value field. It can also be typed in directly)
  7. Let's save our changes. Click on Keep Changes to save our Action, and then Save to Library and Build . Now the rule for "Page View" has been set.

Exercise 3.6 - Sending Profile Data (attribute data)

  1. We just set up our first rule to send an ExperienceEvent to Adobe Experience Platform! Now let's do the same thing for same with Profile data, by taking a look at the Sign Up rule. Clicking on Core - Click you can see the composition of the event that we're looking for - a click on the Submit button during sign-up, with a specific CSS selector for that button.
  2. Under the Conditions field, you can see there as a requirement that we be on the signup.html page for this rule to fire.
  3. Just like we did with the ExperienceEvent dataset, we need to select the correct dataset. Since this is a Profile-updating action, we want to send our data beacon to our L778+[AccountID]_Signups_Dataset dataset, so select that from the dropdown.
  4. Explore the actions for this rule, as there are several already pre-populated. You'll notice that we are sending the many variables, including identityMap which defines who to attribute this beacon data to, sending the ECID and the user's email (which is marked as our primary identifier):
    1. %ECID% => ECID
    2. %Email Address% => Email, Primary
  5. You'll also see that the personalEmail.address value is DELETE and needs to be corrected. This value sets one of the identities that Unified Profile uses to match XDM data to each other. Clear this text box and then select the Email Address data element using the round stack icon next to the text box.
  6. Click Keep Changes on the action, and then Save to Library and Build on the rule. Click on the Publishing tab to watch the status of our build and see it succeed.

Exercise 3.7 - Streaming a Launch data beacon into Adobe Experience Platform from Luma

Now we've got a Launch property set up, and a Luma instance running with the Launch streaming endpoint included. Let's watch it stream data into Experience Platform.
  1. Go to This should be pointing to your Fenix webserver instance of Luma. Right click and open up Inspect to see the page inspector.
  2. Go to the Network tab, and type dcs into the filter box. This will filter our network commands being sent to the Launch streaming URL. Refresh the page.
  3. Select the endpoint under Name"\ and scroll dwon on the right pane to Request Payload . You should see an expandable JSON payload starting with {header: . Expand all these fields and you will be able to see the XDM data that we defined in our Launch rule for "Page View" being sent from the page to Launch.
  4. Go back to your Luma screen. Now let's see our Sign-Up rule in action by going to Sign Up in the top right of the page. Scroll down to the sign-up form and fill in some dummy details with your name and email. These do not have to be real or accurate.
  5. Click Sign Up . Nothing will happen visually; our instance of Luma is stripped-down and does not contain any functionality past this page. Go back to your inspector and you can now observe two Launch beacons being sent!
  6. One beacon data contains the Profile XDM data we filled into the form. You can see all the fields we defined in the "Sign Up" rule on Launch here.
  7. The other beacon is an ExperienceEvent XDM fired by the "Page View" rule, the same as when we were at the Luma Homepage. You'll notice the data for this page is basically identical, except for the webPageDetails and timestamp fields.
  8. We can also look at all of our ExperienceEvent data within Experience Platform using an API call through Postman. Within the beacon data, find the ecid: {id: "##" field and select your ECID. This ID is specific to your browser session and can be used to look up ExperienceEvent and Unified Profile data. Copy this field and we'll use it in the first step of Lesson 4.

Lesson 3 Wrap

Congratulations! You've got all the basics you need for your Adobe Experience Platform setup to build out not just a basis for customer loyalty programs, but also for data collection, storage, and analysis of your incoming customer data from batch ingestion and streaming data.
The streaming capabilities of data into Experience Platform are not limited to websites - mobile apps, POS devices, and other points of data capture can all stream behavioral and other types of data into Experience Platform using methods like Launch.

Lesson 3 - Additional Resources

Exercise 0.3 - Setup Fenix Web Server

  1. Download the Luma website .
  2. Unzip the file and make note of which directory you extract the content to.
  3. Start the Fenix web server.
  4. Select the Web Servers menu and click New
  5. Use Luma as descriptive name.
  6. Click on the folder in the Directory input field. Then navigate the file dialog to the directory you unzipped the Luma-local folder, for the lab machines it should be Desktop/resources/Luma-local , highlight it and click Select .
  7. Click Create .
  8. Click on the Play button to start the server.
  9. Now your Luma site should be ready to be browsed.
  1. Navigate to to test the web server. You should see the following:

Lesson 0 - Wrap