ForeSee Replay Specifications - Custom Event Configuration

FSR.logEvent

Logs an occurrence of a custom event

 

Syntax

FSR.logEvent()

FSR.logEvent(customName)

FSR.logEvent(customName, optionalData)

 

Parameters

customName is a case-sensitive string used to identify and group the custom events.

optionalData is an optional object that can be passed to give additional contextual information about the custom event. The object will be captured as a string representation.

if no customName argument is given, empty string “” is used

if no optionalData is given, optionalData will be undefined

 

Returns

Does not return anything

 

Examples:

Calling FSR.logEvent within a script:

FSR.logEvent(“userSwitchedLocales”, {fromLocale: “CA”, toLocale: “US”});

FSR.logEvent(“forgotPassword”);

FSR.logEvent();

 

Calling FSR.logEvent as an event handler:

logs a custom event with customName value as “formInputFocused” and optionalData value as the name of the focused input

$(“input”).focus(function(){FSR.logEvent(“formInputFocused”, this.id)});

Other articles in this section:

  1. Custom Error Configuration
  2. Custom Event Configuration (current article)