Qiota provides a js events to know if the execution processing is finished and also if the paywall has been displayed on the site

q_qiotaComplete : triggered at the end of processing, with a boolean q_paywallDisplayed to know if the paywall is displayed or not

Example of use

document.addEventListener('q_qiotaComplete', function (event) {

     // processing at the end of setupQiota()

     if (event.q_paywallDisplayed) {

          // processing if the paywall displayed