Skip to main content

Adding clickstream data to a customer profile

6 Tasks

30 mins

Visible to: All users
Intermediate
Pega Customer Decision Hub '24.2
Decision Management
Next Best Action
English

Scenario

U+ Bank uses Pega Customer Decision Hub™ to present personalized credit card offers to its customers on its website. The data scientists want to leverage customers' web activity data to empower their existing AI models. As a system architect, you want to install the Behavioral Data accelerator component, extend the customer profile with financial services clickstream summary, and test the clickstream service shipped with the component. Then, as a data scientist, you want to use the financial services clickstream summary attributes as new predictors in the AI Models.

Note: In the exercise system environment, the U+ Bank website can track and send customers' web click activity to Customer Decision Hub.

Use the following credentials to log in to the exercise system:

Role User name Password
System architect SystemArchitect rules
Data scientist DataScientist rules

Your assignment consists of the following tasks:

Task 1: Download the Behavioral Data accelerator component

Download the Behavioral Data accelerator component.

Task 2: Set up the Behavioral Data accelerator component

As a system architect, add the accelerator component to the implementation application.

Task 3: Associate the financial clickstream summary with the customer context

From Customer Decision Hub, add the Financial clickstream summary to the allow list and build the association with the customer context by using Customer Profile Designer.

Task 4: Test the Clickstream service

Manually invoke the Clickstream service from Dev Studio by using the following sample JSON payload and validate that your configuration is successful.

{

"CustomerID":"14",

"InterestedIn":"",

"InterestLevel":"",

"EventType":"PageView",

"PageType":"Card",

"DeviceType":"Web",

"PageViewActiveTime":"",

"CookieID":""

}

Tip: To verify the web click activity, browse the Financial services clickstream summary from Customer Decision Hub.

Task 5: Generate clickstream activity from U+ Bank

The U+ Bank website is configured to call the Clickstream service that you set up in previous tasks. Login to the U+ Bank website as Troy and navigate to the Credit Cards page to generate clickstream data in Customer Decision Hub. Review the generated data.

Tip: To verify the web click activity, browse the Financial services clickstream summary from Customer Profile Viewer.

Task 6: Add financial clickstream summary predictors to AI models

As a data scientist, introduce behavioral data predictors to AI models by using the newly associated financial clickstream summary attributes.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Download the Behavioral Data accelerator component

  1. Download the Behavioral Data accelerator component.

2 Set up the Behavioral Data accelerator component

  1. On the exercise system landing page, click Launch Pega InfinityTM to log in to Dev Studio.
  2. Log in as the system architect:
    1. In the User name field, enter SystemArchitect.
    2. In the Password field, enter rules.
  3. Import the downloaded Behavioral Data accelerator component ZIP file:
    1. In Dev Studio, click Configure > Application > Distribution > Import.
    2. In the Import Wizard, click Choose File, and select the downloaded zip file to upload the component.
    3. Click Next until import is initiated and wait for the wizard to complete the import process.
    4. Once the import is complete, click Done to close the import wizard.
  4. In the header of Dev Studio, click Application > Definition to open the application rule.
    Open application definition
  5. In the Enabled components section of the application rule, click Manage components to open the Available components window.
    Click the manage components button
  6. In the Available components window, ensure the Enabled check box is selected, click OK to dismiss the Available components window.
    Available Components window
  7. In the Application Definition, ensure the Behavioral data accelerator component is added to the enabled components.
  8. In the upper-right corner, click Save to save the application rule.

3 Associate the financial clickstream summary with the customer context

  1. In the header of Dev Studio, click Launch portal > Customer Decision Hub.
    Launch Customer Decision Hub
  2. In the navigation pane of Customer Decision Hub, click Data > Profile Data Sources.
    Click the Profile Data Sources in the navigation bar
  3. In the Profile Data Sources page, click Add and select Data flows.
  4. In the Add data flow wizard, select the Process clickstream data, then click Add.
    Add data flow wizard
  5. On the Summaries tab of Profile Data Sources, click the Financial services clickstream profile data source.
    Open FS Clickstream summary rule
    Tip: Refresh the Summaries tab if the clickstream summaries are not available.
  1. On the Summary: Financial services clickstream rule form, click Save so that Customer Decision Hub automatically generates underlying artifacts in the background (summary attributes, output class structures, dataflows).
    Save the FS Clickstream summary rule
    Caution: This process can take up to one minute.
  1. On the Summary: Financial services clickstream page, click the Records tab to confirm that there are no records.
    Confirm there are no records
  2. In the navigation pane of Customer Decision Hub, click Data > Profile Designer.
    Click the Profile Designer in the navigation bar
  3. In the upper-right corner, click Edit.
  4. Click Add associated data > Summary > Financial services clickstream to display the Add associated data dialog box.
    Adding associated data to customer profile
  5. In the Add associated data dialog box, click Add to add the data to the customer profile.
    Add the associated data mapping
  6. In the upper-right corner, click Save.
  7. In the upper-right corner, click user icon, and then Log off.

4 Test the Clickstream service

  1. Log in as the system architect:
    1. In the User name field, enter SystemArchitect.
    2. In the Password field, enter rules.
  2. In the header of Dev Studio, search for BehavioralData and then find the Service REST rule.
  3. Click the BehavioralData Service REST to open the rule properties.
    Behavioral Data service
  4. In the upper-right corner, click Actions > Run.
    Run Behavioral data service
  5. In the Run window, configure the following settings:
    1. In the HTTP Method section, click POST.
    2. In the Message Buffer section, enter the following JSON payload:
      {
      "CustomerID":"14",
      "InterestedIn":"",
      "InterestLevel":"",
      "EventType":"PageView",
      "PageType":"Card",
      "DeviceType":"Web",
      "PageViewActiveTime":"",
      "CookieID":""
      }
      Service Load
    3. Click Execute.
  6. Confirm that you received a success response from the service with HTTP Status code 200.
    Confirm the service response
  7. In your browser, close the response tab.
  8. In the header of Dev Studio, click Launch portal > Customer Decision Hub to open Customer Decision Hub.
  9. In the navigation pane of Customer Decision Hub, click Data > Profile Designer.
  10. On the Profile Designer page, click the Financial services clickstream profile data source.
  11. At the top of the summary rule, click the Records tab to review the generated records.
    Browse the Records in the summary rule
  12. Scroll to the right to confirm that the CardPageVisit attributes have values.
    Confirm the Card Page property has value

5 Generate clickstream activity from U+ Bank

  1. On the exercise landing page, in the upper-left corner, click App-Switcher > U+ Bank to open U+Bank website.
    Use appswitcher to navigate to UBank
  2. In the upper-right corner, click Log in > Sign in to log in as Troy.
    Troy Uplus login
  3. Navigate to the Credit Cards page once or a few times to generate clickstream data.
    Troy landing page
  4. In your browser, return to Customer Decision Hub.
  5. In the header of Customer Decision Hub, click the clipboard icon and open Customer Profile Viewer.
    Launch Customer Profile viewer
  6. In the Customer ID field enter 14 and click View.
    1. On the Customer Profile Viewer page, click the Behavioral data tab.
    2. In the Summaries and aggregates list, select Financial services clickstream.
      Select the Financial services clickstream
  7. Scroll down to confirm that Card Page visit counts have increased and that additional attributes now have values.
    Note: The attribute values are calculated in real-time from your actions on the U+ Bank website, so the values vary.
    Review the aggregate properties
  1. In the upper-right corner, click user icon, and then Log off from Customer Decision Hub.
  2. In the lower-left corner, click user icon and then Log off from Dev Studio.

6 Add financial clickstream summary predictors to AI models

  1. Log in as the data scientist:
    1. In the User name field, enter DataScientist.
    2. In the Password field, enter rules.
  2. In the navigation pane of Customer Decision Hub click Intelligence > Prediction Studio to launch Prediction Studio.
  3. In the Predict Web Propensity prediction, click Open Prediction.
    Launch the Predict Web Propensity prediction
  4. On the Models tab of the prediction, click the Web Click Through Rate Customer adaptive model.
    Launch the Web Click Through Rate adaptive model
  5. On the Predictors tab, click Add field > Add multiple fields.
    Add multiple fields to the rule
  6. In the Current page (CDH) section, expand Page Customer.
  7. Click Page FSClickstream to set the clickstream predictors.
    Open the Page FSClickstream
  8. At the top of the list, select the check box to select all predictors shipped with the component.
    Note: As models evolve, predictors with low predictive power automatically become inactive.
    Select all of the predictors
  1. Click Submit.
  2. In the upper right corner, click Save.

This Challenge is to practice what you learned in the following Module:


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice