Inactivity Listening
Inactivity Listening lets you show a dialogue to a customer or visitor who 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 Inactivity listener to track customer behavior
To use the listener, two things have to be done:
- You need to configure the BlueConic Inactivity Listener.
- You need to create a dialogue to handle "inactivity" events thrown by the listener.
Configure the Inactivity 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 a BlueConic dialogue to track customer activity
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(), as shown here:
blueConicClient.event.subscribe('inactivity', this, function() { alert('inactivity event fired'); });
Privacy management
Listeners can be added to Objectives, allowing for privacy management of the information that is being picked up. The listener will only update a profile if the visitor consented to at least one of the objectives that it is linked to.