Skip to main content

Adding clickstream data to a customer profile

6 Tasks

30 mins

Visible to: All users
Beginner Pega Customer Decision Hub 8.7 English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Scenario

U+ Bank uses Pega Customer Decision Hub™ to present personalized credit card offers to their customers on its website. The data scientists want to leverage customer's web activity data to empower their existing AI models. As a system architect, you want to install the Customer Profile Designer Accelerator component from Pega Marketplace, 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 Customer Profile Designer Accelerator component

As a system architect, download the Customer Profile Accelerator component from Pega Marketplace.

Task 2: Set up Customer Profile Designer Accelerator component

As a system architect, add the accelerator component to the implementation application and block the summary rules shipped in the component that are not part of the U+ Bank use case (insurance and healthcare summaries).

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":"",

"Event":"PageView",

"PageType":"Card",

"DeviceType":"Web",

"PageViewActiveTime":"",

"CookieID":""

}

Tip: To validate that the system successfully invoked the Clickstream service, 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 Decision Hub.

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 Customer Profile Designer Accelerator component

  1. On the exercise system landing page, click Pega CRM suite to log in to Dev Studio.
  2. Log in as the system architect with User name SystemArchitect and Password rules.
  3. In the header of Dev Studio, click Application > Definition to open the application rule.
    AppDefinition87
  4. In the Enabled components section of the application rule, click Manage Components to open the Available components window.
    ManageComponents87
  5. In the the Available components window, click Browse Apps & Components to download the accelerator component from Pega Marketplace.
    BrowseApps87
  6. In the search field, enter Customer Profile Designer Accelerator.
  7. Click the search icon.
    PMarketplace87
  8. On the results page, click Customer Profile Designer Accelerator.
    CPDA87
  9. Download the component.
    Note: You must be signed in to download the component. If you are not a member, click Sign Up in the upper-right corner before starting the download. You must agree with Pega Marketplace Terms of Use to start download.
    Download87

2 Set up the Customer Profile Designer Accelerator component

  1. In the Available components window, click Install new and select the downloaded .zip file from File Explorer to install the component.
    InstallNew87
  2. Once the installation finishes and the Enabled check box is selected, click OK to dismiss the Available components window.
    EnabledComponent87
  3. 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 to open Customer Decision Hub.
    CDHPortal87
  2. In the navigation pane of Customer Decision Hub, click Data > Profile Data Sources.
    SelectPDS87
  3. On Summaries tab of Profile Data Sources, click the Financial services clickstream profile data source.
    SummariesTab871
  4. On the rule form, click Save so that Customer Decision Hub automatically generates underlying artifacts in the background (summary attributes, output class structures, dataflows).
    SaveFSClickstream87
  5. In the navigation pane of Customer Decision Hub, click Data > Profile Designer.
    SelectPD87
  6. In the upper-right corner, click Edit.
  7. Click Add associated data > Summary > Financial services clickstream to display the Add associated data dialog box.
    AddAssociatedData871
  8. In the Add associated data dialog box, click Add to add the data to the customer profile.
    MapDatasource87
  9. In the upper-right corner, click Save.
  10. In the upper-right corner, click SA, and then Log off.

4 Test the Clickstream service

  1. In the header of Dev Studio, search for Clickstream and then find the Service REST rule.
  2. Click the rule to open the rule properties.
    SearchREST87
  3. In the upper-right corner, click Actions > Run.
    RunService87
  4. 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":"",
      "Event":"PageView",
      "PageType":"Card",
      "DeviceType":"Web",
      "PageViewActiveTime":"",
      "CookieID":""
      }
      Post87
    3. Click Execute.
  5. Confirm that you received a success response from the service with HTTP Status code 200.
    ServiceResponse87
  6. In the header of Dev Studio, click Launch portal > Customer Decision Hub to open Customer Decision Hub.
  7. In the navigation pane of Customer Decision Hub, click Data > Profile Data Sources.
  8. On the Summaries tab of Profile Data Sources, click the Financial services clickstream profile data source.
  9. At the top of the summary rule, click the Records tab to review the generated records.
    Records87
  10. Scroll to the right to confirm that the CardPageVisit attributes have values.
    CardPageRecords87

5 Generate clickstream activity from U+ Bank

  1. On the exercise system landing page, click U+ Bank to launch the U+ Bank website.
  2. In the upper-right corner, click Log in > Sign in to log in as Troy.
    Login87
  3. Navigate to the Credit Cards page once or a few times to generate clickstream data.
    CCPage87
  4. Return to the Financial services clickstream summary in Customer Decision Hub.
  5. Scroll to the end of the page and then, in the upper-right corner, click Refresh.
    Refresh87
  6. 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, so the values vary.
    IncreasedCardPage87
  1. In the upper right corner, click SA, and then Log off.

6 Add financial clickstream summary predictors to AI models

  1. Log in to Prediction Studio as a data scientist with User name DataScientist and Password rules.
  2. On the Predict Web Propensity prediction, click Open Prediction.
    OpenPred87
  3. On the Models tab of the prediction, click the Web_Click_Through_Rate adaptive model.
    OpenModel87
  4. On the Predictors tab, click Add field > Add multiple fields.
    AddPred87
  5. In the Current page (Customer) section, expand Page Customer.
  6. Click Page FSClickstream to set the clickstream predictors.
    PageFSCS87
  7. 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.
    SelectAll87
  1. Click Submit.
  2. Click Save.


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