HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Consumption metrics

Describes the service consumption metrics, definitions, and setup of usage parameters for solutions running in Optimizely Digital Experience Platform (DXP).

The usage parameters must be correctly set up, especially for single-page applications, to ensure that the website traffic volume monitoring is correct.

The consumption levels are defined when setting up service tiers based on the estimated amount of generated traffic. The service consumption is measured through the usage parameters.

An example of a usage parameter is the view of a page on a customer website provided by a service instance under an Optimizely DXP subscription. If a visitor clicks reload after reaching the page, this is counted as an additional page view. If a visitor navigates to a different page and returns to the original page, an additional page view is recorded.

You can see the consumption metrics and traffic volumes in Application Insight (requires access).

Usage parameter definitions

  • Page view –Tracks page impressions, which means that a page view is counted in every occurrence where a page is displayed to a visitor. For websites, page views usually correlate with events where the browser location changes, for example, because a visitor clicked a link, navigated browser history, reloaded the current page, or typed in a new address.
  • Page – A composition of content that is not a static file but has a URL and can be loaded, for example, in a browser. Depending on the implementation, a page may map to an instance of a page type in Optimizely Content Management System (CMS) or to a product in Optimizely Customized Commerce. Still, it may also include blocks, external data, or aggregates of external data or other pages.
  • Static file – An uploaded or deployed file, for example, a PDF, an image, or a CSS with a URL, and can be downloaded as-is by visitors using a browser.

These parameters are the base of the usage metrics. Application Insight monitoring is configured automatically for sites running in DXP, but depending on the site architecture, some further configuration might be needed to use its features fully.

Single-page applications

Page views are tracked by default when a new page loads into the browser. Websites based on the Single Page Application (SPA) concept are different because these interact with visitors by dynamically rewriting the current page and do not need page reloading during usage. For these websites, you specifically need to configure the page view tracking.

Application Insights is already loaded when the page loads and the following code is used to track a custom page view:

if (typeof appInsights !== 'undefined') {
  appInsights.trackPageView(myPageName);
}

See the following topics: