Overview

Embedded Analytics within SAP hybris Marketing Loyalty enables Marketers or Analysts to define their own set of KPIs to analyze how their loyalty program is performing. For example, there are KPIs to measure number of members who registered to the loyalty program, Total revenue generated, loyalty points that have been Accrued by members who have signed up for loyalty program and other loyalty KPIs.

The data will be read directly from loyalty Micro services and aggregated KPI results are achieved using Elastic search capability of Hybris solution. Embedded analytics is currently supporting KPIs on loyalty data.

In YaaS Builder, the Analytics tab in SAP hybris Marketing Loyalty loads the Analytics dashboard that contains loyalty KPIs and charts.

The following loyalty KPIs are displayed:

  • Members - Total number of members who have signed up for the loyalty program
  • Member Activities - Total number of member activities
  • Member Revenue - Total revenue generated from loyalty program members
  • Points Accrued - Total loyalty points accrued by loyalty program members
  • Points Redeemed - Total loyalty points redeemed by loyalty program members
  • Active Offers - Total offers active for the loyalty program
  • Redeemable Points - Total points available to redeem for the loyalty members

The following loyalty charts are displayed:

  • Members by Tier ( Pie Chart)
  • Members by Month / Qtr / Year per Tier
  • Member Activities by Month / Qtr / Year per Tier
  • Member Revenue ($) by Month / Qtr / Year per Tier

A Marketer can filter these KPIs and charts based on the time period and tiers configured for the loyalty program. Only predefined KPIs are displayed. There is no option for Marketers to create their own KPIs and charts. A Marketer can hide or unhide KPIs based on his/her requirements.

For example, a Marketer or Loyalty Administrator in YaaS Builder can view the total loyalty points redeemed by loyalty program members, total points accrued by loyalty program, view total number of loyalty members and can also view this information using charts too.

Scopes prevent unauthorized access to Loyalty micro services. The accepted scope for Analytics is sap.loyanalytics_view, which allows a user to view the KPIs and charts in Analytics tab of SAP hybris Marketing Loyalty.


Overview

The Loyalty Report Metadata service stores the metadata for loyalty KPIs and charts, which is used in the Analytics dashboard of SAP hybris Marketing Loyalty.

In YaaS Builder, the Analytics tab in SAP hybris Marketing Loyalty loads the Analytics dashboard that contains loyalty KPIs and charts.

The following loyalty KPIs are displayed:

  • Members: Total number of members who have signed up for the loyalty program
  • Member Activities: Total number of member activities
  • Member Revenue: Total revenue generated from loyalty program members
  • Points Accrued: Total loyalty points accrued by loyalty program members
  • Points Redeemed: Total loyalty points redeemed by loyalty program members
  • Redeemable Points: Total loyalty points available for the loyalty program members to redeem
  • Active Offers: Total active offers available for the loyalty program members

The following loyalty charts are displayed:

  • Members by Tier ( Pie Chart)
  • Members by Month / Qtr / Year per Tier
  • Member Activities by Month / Qtr / Year per Tier
  • Member Revenue ($) by Month / Qtr / Year per Tier


API Reference

/reportMetadatas

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/reportMetadatas

get

Get metadata of all the KPIs and charts for analytics

Accepted scopes:

  • 'sap.loyreport_view' - Required to view Report Metadata
post

Creates meatadata for new KPI or chart for analytics

Accepted scopes:

  • 'sap.loyreport_manage' - Required to edit/manage Report Metadata

/reportMetadatas/aggr

get

Gets Average, Sum and Count aggregation for report metadata

/reportMetadatas/{reportId}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Gets metadata information for a specific KPI or chart based on report id provided

Accepted scopes:

  • 'sap.loyreport_view' - Required to view Report Metadata
put

Updates metadata information for a specific KPI or chart based on report id provided

Accepted scopes:

  • 'sap.loyreport_manage' - Required to edit/manage Report Metadata
delete

Deletes metadata information for a specific KPI or chart based on report id provided

Accepted scopes:

  • 'sap.loyreport_delete' - Required to delete Report Metadata

/initialLoad

/initialLoad

post

To provide initialLoad of Report Metadata for a new tenant with default KPIs and charts

/migration

/migration

get

Migrate report metadata

Accepted scopes:

  • 'sap.loyreport_view' - Required to get all metadata


Error Types

For more information about error codes, see the detailed error description for each API operation in API Reference. You can also check the standard error codes at API best practices.


Scopes

Scopes are strings that let you specify exactly what type of access you need to the resources and operations in the Loyalty Report service and prevents unauthorized access to the services.

You must provide a proper scope that enables users to perform certain operations. The scopes should be granted in an access token from OAuth 2.0 service. For more information about the authorization and authentication used in hybris services, and also about the scopes in general, see: Authorization Scopes

The table presents all the scopes supported by the Loyalty Report service and references to the tutorials that contain examples using the proper scopes.

ScopeDescription
sap.loyreport_viewUse this scope to view report metadata created.
sap.loyreport_manageUse this scope to create, edit or manage report metadata.
sap.loyreport_deleteUse this scope to delete the report metadata.

If a certain operation requires two scopes to be allowed, then your role will need to have these two scopes assigned. Let's see an example from the Marketing Manager perspective.

  1. You want to delete the existing metadata for a KPI and create a new KPI definition, your role needs sap.loyreport_manage and sap.loyreport_delete scopes.
  2. You just want to access analytics KPI from builder your role needs sap.loyreport_view scope.


  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.