Inactivity Handling

Users may walk away from their device or fail to close the experience. It is best practice for Metalitix to stop recording data to prevent negative influence on some metrics.

By default, Metalitix will automatically stop recording and sending data after 2 minutes of user inactivity.

SettingDefault

inactivityInterval The time, in seconds, before a session is automatically ended due to inactivity.

120

FunctionParametersReturns

addInactivityListener() Adds a callback when a session is automatically stopped due to inactivity.

function callback - The function to run when a session becomes inactive.

None

clearInactivityListeners() Removes all inactivity callbacks set by the user.

None

None

Last updated