nsc_Visitor.getPagesCount()

 Returns an integer number of site pages viewed during the current visit.

Use-case

$(function() {
    // Adding the chat widget initialization event listener
    // Prior to this moment the nsc_Visitor object is absent in the scope
    $(document).on('netroxinit', function(event, data) {
        if (!data.real) { // Not a status change but initialization in any status during page loading
            alert("You have watched " + nsc_Visitor.getPagesCount() + "pages");
        }
    });
});

Demonstration of .getPagesCount() through the Google Chrome developer kit console
Fig. 1 Demonstration of nsc_Visitor.getPagesCount() through the
Google Chrome developer kit console

All rights reserved. Copyright © 2017 Netrox SC
Host CMS