Not sure if it's possible to add custom js to a GhostPro account, but perhaps this script might be worth a look:
https://github.com/berthubert/audience-minutes
Another option, if you can download logs is:
https://goaccess.io
I've used it to analyse webserver logs offline & create statistical reports for other people. This might be a bit much for what seem to seek?