Listening for events

You can hook into the Birdie callback named onBirdieAction, which will provide you with some events during a co-browsing session. To register this callback, use the birdieSettings object you are already using to identify your customer (see Snippet installation section), as demonstrated in the example below:

window.myBirdieCallback = function(event) { 
	// your own code here…
	// console.log("myBirdieCallback event is:", event) 
}

window.birdieSettings={
  onBirdieAction: myBirdieCallback,
};

List of events

Event NameDescription
session_started

A co-browsing session has started.

session_stopped

A co-browsing session has ended.

session_request_started

An agent is asking to start a co-browsing session

session_request_canceled

An agent canceled a co-browsing session request

session_request_denied

A co-browsing session has been refused by the customer

session_request_accepted

A co-browsing session has been accepted by the customer

call_request_started

An agent is asking to start a video/audio call

call_request_canceled

An agent canceled the video/audio call request

call_request_denied

A video/audio call has been refused by the customer

call_request_accepted

A video/audio call has been accepted by the customer

Last updated