Inactivity Listening

Inactivity Listening allows you to show a dialogue when the visitor has been inactive for a while. It does so by throwing an "inactivity" event whenever inactivity is detected. Dialogues can use this event as an activation trigger by selecting "Show on Event" and "Inactivity" on the "When" tab.

Using the listener

To use the listener, two things have to be done:

  1. The Inactivity Listener itself needs to be configured.
  2. A dialogue has to be created to handle "inactivity" events thrown by the listener.

 

Configure the listener

The Inactivity listener takes the following parameters:

Activate after
Set to the number of seconds to wait for user inactivity before throwing the "Inactivity" event.
Activate when
Choose the items that define "user inactivity":
  • Activate "the user does not click" to reset the inactivity timer when the user clicks.
  • Activate "the user does not enter values in the form" to reset the inactivity timer when the user enters a value in a form field.

Configure the dialogue

The Inactivity Listener will throw an event named "inactivity". To react to this event you need to create a new dialogue that will show when the "inactivity" event is thrown:

  • Open "Dialogues".
  • Click [Add Dialogue].
  • On the "Who" tab, select the segments that define your audience.
  • On the "Where" tab, select the channels you want the dialogue to appear on.
  • On the "Interaction" tab edit your interaction as you would normally.
  • On the "When" tab, select "Show on Event" and "Inactivity".
  • Enable the Dialogue and save it.

Using the inactivity event

The Inactivity Listener throws an event whenever it detects inactivity. This event is named inactivity and can be picked up by other listeners to define behavior.

Behavior listener

For example, below is an example listener that picks up on the event and keeps track of the number of times the event fired:

  • Open "Profiles > Listeners"
  • Add a new Behavior Listener
  • Add a rule of type "Advanced Event"
  • Select the value and profile property as you would in any listener
  • Click "select event", select "Custom defined event", enter inactivity and click "OK".
  • Leave the selections "contains any word" and "any value" as they are.
  • Name your new listener and click "Save"

This behavior listener will now set the property as you defined every time a visitor becomes inactive.

Custom Javascript

Alternatively, you can subscribe to the event in your custom javascript code using the Javascript Front-end API's event.subscribe(), like so:

blueConicClient.event.subscribe('inactivity', this, function() {
  alert('exitintent event fired');
});

 

The Inactivity Listener is a certified plugin.