process-intelligence-with-productivity-and-usage-analytics
Reactive icon

Process Intelligence with Productivity and Usage Analytics

Stable version 1.0.7 (Compatible with OutSystems 11)
Uploaded
 on 05 January 2022
 by 
5.0
 (6 ratings)
process-intelligence-with-productivity-and-usage-analytics

Process Intelligence with Productivity and Usage Analytics

Documentation
1.0.7

Pyze Web Sample

This component consists of a sample app showing a Pyze web integration. This includes sdk installation, custom events and attributes, timed events, and usage of OutSystems local variables as custom attributes.

Pyze Documentation

Pyze OutSystems Integration

Pyze Low-code Analytics User Guide

For more details on Web and Mobile integrations, access:

Pyze Web Application Analytics

Pyze Mobile Analytics for Apache Cordova

Key examples within this sample

This sample includes the following key elements:

Initialization

The first thing you should do when installing the Pyze SDK is Initialization this adds the sdk to every page within your app, and gets you a ton of out-of-the-box metrics

This is best acheived in the OnApplicationReady event in Client Logic. Copy paste the javascript snippet from the pyze documentation into a JavaScript module on this action:

  • Replace YOUR_PYZE_APP_KEY with the key from the Pyze dashboard identifying this application.

     

Custom Events

The sample app has several examples of custom events you can use to guide your implementation. Use custom events to generate business metrics that your organization cares about. These can range from specific technical events like "User interacted with chart", to high-level KPI's such as "Users are following out of the funnel at this point"

Documentation on custom events

Simple Custom Event

You can see an example of a custom event on the main page of this application. When someone hovers their mouse on the chart on this page, we fire simple event noting so.

Custom events with Attributes

You can see an example of a custom event with attributes and a passing a local Outsystems variable on the List screen navigation bar. We pass the start index into the javascript function, and send it as a custom attribute.

Simple Timed Event


Pyze has made it easy for you to capture duration between events. Pyze supports timed events using the following API's

  • startTimerForEvent - Use this API start timer for a particular event by passing the event name attribute.
  • postTimedEvent  - Use this API to end the timer and post the event with duration. This API accepts the event name attribute.
  • postTimedEventWithAttributes - This is similar to `postTimedEvent` API, it accepts a additional attributes parameter which is of type dictionary object.


We initialize a simple timer in the onReady action to start the timer upon page load.

Then when the user submits the form, we call PostTimedEvent API. We can use this to see how long users are taking to fill out this form, along with any other information we want to include with this event.