Flinks Connect has events that can be used for tracing purposes, not only for successful connections, but also for sessions that weren't completed.

To enable the event listener you need to add the following block into the page that has Flinks Connect embedded:

<!-- Event Listener -->
    window.addEventListener('message', function(e) {

The event will be returned in a JSON format, but if you require it as a string instead, you need to add the parameter stringify=true into the Flinks Connect iframe URL.

Here's an example of a step event:

{step: "REDIRECT", institution: "FlinksCapital", url: "https://example.com?loginId=77d2967c-627a-440f-be3….1529418524&tag=TestTag&institution=FlinksCapital"}

The event can also be a FlinksCode output:

{requestId: "3eb951d4-6d73-461c-8cd7-7896a0b8992e", flinksCode: "QUESTION_NOT_FOUND", institution: "FlinksCapital"}

The possible events are listed here: Events