Skip to main content
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Adding behavioral data to a customer profile

The Customer Profile Designer Accelerator component is available for download on Pega Marketplace for use in your Pega Customer Decision Hub™ application. This component contains all the artifacts that are necessary to obtain industry-specific best practice clickstream summaries quickly.

Video

Transcript

This demo shows you how to use the accelerator component to leverage industry-specific best practice clickstream summaries and extend the customer profile with behavioral data to improve the performance of the predictive models.

The U+ Bank technical team wants to enhance the out-of-the-box best practices of Customer Profile Designer to capture clickstream data to extend a customer's profile and introduce powerful predictors to their existing adaptive models.

To capture clickstream data, download the Customer Profile Designer Accelerator component from Pega Marketplace. In Dev Studio, navigate to the application definition. Here, you can install the new component.

Review the application definition

 

You can browse through the predefined components from Pega Marketplace to download the accelerator component.

Login to Pega Marketplace

 

Search for the Customer Profile Designer Accelerator component, and then download it to your computer.

Download the component from marketplace

 

Now, install the downloaded component and view the underlying rules.

Install the component to Customer Decision Hub

 

After you successfully install the component, confirm that the Enabled checkbox selection is the default status.

Confirm the component is installed

 

In Dev Studio, confirm that the component is displayed in the Enabled components section of the application rule, and then save your changes.

Confirm the enabled components in the application rule

 

The component includes several important artifacts:

A sample Clickstream Rest service that the system can invoke from a website.

Clickstream REST service

 

A data structure to support the service payload.

Clickstream data model

 

A Clickstream data set for generic clickstream data.

Clickstream stream data set

 

Three example summaries for aggregation of clickstreams on industry-specific web pages.

Shipped aggregate summaries

 

The number of summaries and aggregate conditions that the system allows have limits to ensure that there is no impact on system performance. You apply these limits through the dynamic system settings.

The max_summary_associations_number dynamic system setting shows the number of summaries that you can create in Customer Profile Designer. The default value is 3.

Max number of summary associations dynamic system setting

 

The max_aggregates_number dynamic system setting is the number of aggregate conditions each summary can hold, which has a default value of 120. You can change these limits if necessary, but analyze the performance impact.

Max number of aggregates dynamic system setting

 

As a best practice, block the summary rules that you do not intend to use. In this case, you can block the Insurance and Healthcare summaries. Save the HealthcareClickstream summary to your Rules ruleset, and then mark it as Blocked. Save your changes.

Block the healthcare clickstream

 

Follow the same steps to block the InsuranceClickstream summary.

Block the insurance clickstream

 

Navigate to the Profile Data Sources landing page in the Customer Decision Hub portal. The Clickstream data set that the component provides to store customer web click activity is now available as a data source. It is important to note that the system cannot directly associate streaming data with the primary context and needs to summarize the data into meaningful aggregations.

Profile Data Sources in Customer Decision Hub

 

On the Summaries tab, the Financial services clickstream summary is available. Note that the data source for this summary uses the Clickstream data set. This setting means that every event that flows through the Clickstream data set factors into the calculation of the aggregations in the Financial services clickstream summary rule.

Defined Summaries in the system

 

Launch the Financial services clickstream summary rule, and then click Save. The system begins a background process for creating the aggregate properties, dataflow scheduler, the corresponding class structure for the generated artifacts, and marking the properties as relevant for use in Next-Best-Action Designer.

Aggregates in Financial services clickstream rule

 

This Financial services clickstream summary includes 90 aggregates, each with a unique aggregation condition. For example, select the Card page visits last 1 day aggregate to browse its condition. You can see that this aggregation counts the number of events received as PageView with a PageType of Card that occurred in the last one day.

CardPageCisitsLast1Day aggregation condition

 

With everything in place, associate this summary with your primary context in the Profile Designer.

Customer Profile Designer landing page

 

Add a new summary to the associated data of the primary context. In this case, the only available data source is Financial services clickstream.

Adding a new summary as association in Profile Designer

 

The Financial services clickstream summary rule has a single data source key, which is automatically mapped to the context key of the primary class.

Building the association with the primary context

 

Once you add the summary as a new association, save your changes.

Save the association in Profile Designer

 

You are ready to test the configuration. In Dev Studio, search for the Clickstream service REST rule for testing.

Invoke the Clickstream REST service

 

Run the service with a sample JSON payload as if the web page invokes the service for a customer who is viewing the Cards page.

{
"CustomerID":"14",
"InterestedIn":"",
"InterestLevel":"",
"Event":"PageView",
"PageType":"Card",
"DeviceType":"PC",
"PageViewActiveTime":"",
"CookieID":""
}

Now, in the Financial services clickstream summary rule that you associated with the customer, click the Records tab. Browse the aggregated data record that the system generates for the event.

Browse the results in the FS CLickstream summary

 

You can now share the JSON structure and service endpoint with web developers.

The U+ Bank technical team has developed the integration between the website and Customer Decision Hub. Now, the customer's web activity streams in through the Clickstream service that you previously tested.

Launch the U+ website and log in as Troy.

Login to UPlus Bank as Troy

 

At the top of the screen, click Credit Cards to open the Cards page.

Click the credit cards page

 

By logging in to the Account overview for Troy and navigating to the Credit Cards page, you create some web activity for Troy.

In Customer Decision Hub, review the records in the Financial services clickstream to verify that the events streamed and processed successfully.

Confirm that the aggregate CardPageVisitLast1Day has increased. Note that the system began calculating additional aggregates, such as the average active seconds spent on the page. After reviewing the aggregates, launch Prediction Studio.

Browse the results in the summary again

 

After completing the end-to-end testing, it is time to empower the adaptive models by leveraging the attributes that come with the summary rule. This task is typical for data scientist, but it is demonstrated to complete the use case.

Prediction studio landing page

 

In the Predict Web Propensity prediction, launch the Web_Click_Through_Rate adaptive model.

You can add new predictors on the Predictors tab of the adaptive model. Click the Add field list, and then select Add multiple fields to add more than one predictor.

Adding multiple fields as predictors

 

The FSClickstream page in the Customer class contains all the predictors that the system calculates in the FSClickstream summary rule. Select all the properties, and then save your progress.

Selecting all predictors

 

You have reached the end of this video. What did it show you?

  • How to install the Clickstream component.
  • How to associate a Summary rule with the primary context.
  • How to test the Clickstream service.
  • How to use the Behavioral data source as predictors.

Challenge

Tip: To practice what you have learned in this topic, consider taking the Adding clickstream data to a customer profile challenge.

 


This Topic is available in the following Module:

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