Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Configure activity contexts for Self-Service Analytics

Define the type of activities you want to collect as Self-Service Analytics data for a user entity such as consumers and customer contacts.

Before you begin

Role required: sn_ssa_core.self_service_manager

About this task

The activity types you add to an activity context are already predefined for use in applications that use the Subscriptions and Activity Feed Framework. This framework is available when you install the Subscriptions and Activity Feed Framework plugin (com.snc.activity_subscriptions). The plugin is activated when you activate the Self-Service Analytics Core plugin (com.snc.self_service_analytics_core).

Procedure

  1. Navigate to All > Self-Service Analytics > Configuration > Activity Context.

  2. In the Activity Contexts list, search for and select the activity context for your user entity.

    • For consumers, select Consumer.
    • For customer contacts, select Contact.
    • For user entities other than consumers and customer contacts, click New to create another activity context. Note: To get the activity contexts Consumer and Contact by default, you must install Self-Service Analytics for Customer Service (com.snc.pa.self_service_analytics_csm) plugin.
  3. On the Activity Context form, verify the default field values for consumers and customer contacts, or fill in the values for a custom configuration.

FieldDescription
NameUnique name for your activity context.
Context TableTable that includes the user entity whose actions need to be tracked and displayed on the Self-Service Analytics dashboard.For example, if you want to track all actions for a customer contact, select the Contact \[customer\_contact\] table. Similarly, if you want to track all actions for a consumer, select the Consumer \[csm\_consumer\] table.​
ModuleModule associated with the application that stores the activities data.
ApplicationScope of the application. This field is automatically set based on the application scope selected in the application picker.
DomainDomain in which the activities records exist.
  1. If you are creating a new activity context, click Submit and then select the newly created activity context link from the Activity Contexts list.

  2. In the Activity Context Groups related list, map an activity context with activity groups.

    • For consumers and customer contacts, verify the default field values for an existing configuration.
    • For user entities other than consumers and customer contacts, click New to create another activity group or map with an existing activity group. For a new activity group mapping, on the Activity Group form, fill in the fields and click Submit. In the Activity Context Groups related list, you then have to select the newly created activity group and add available activity types to the activity group.
    FieldDescription
    Activity ContextActivity context associated with the activity group.
    Activity GroupOption to search for and select an activity group.
    ApplicationDefines the scope of the application. This field is automatically populated based on the application scope.
    DomainDomain in which the activities records exist.
  3. In the Activity Context Types related list, map an activity context with an activity type.

    • For consumers and customer contacts, verify the default field values for an existing configuration.
    • For user entities other than consumers and customer contacts, click New to create another mapping or use an existing configuration. For a new activity type mapping, on the Activity Source Context Mapping form, fill in the fields and click Submit.
FieldDescription
Activity ContextActivity context associated with the activity source.
Context TableTable that includes the user entity whose actions need to be tracked and displayed on the Self-Service Analytics dashboard.This field is auto-populated based on the selected activity context.
Activity TypeActivity type you want to associate with the activity context.
Source TableTable from which the data for the activity context is populated.
Filter CriteriaFilter conditions applied on the source table.
Advanced MappingOption to enable advanced mapping of activity source and activity context. You enter a script in the Advanced Mapping Script field.
Advanced Mapping ScriptScript to use if the source and context mapping is not sufficient. This field appears only when the Advanced Mapping option is selected.
ModuleModule associated with the application that stores the activities data.
ApplicationScope of the application that contains the user entity. This field is automatically set based on the application scope selected in the application picker.
DomainDomain in which the activities records exist.
Fetch from ActivitiesOption to enable a business rule defined for an activity type.
  1. On the Activity Context form, click Update.

What to do next

Configure pattern elements for Self-Service Analytics.

Parent Topic:Configure Self-Service Analytics