count activity for JavaScript API based on page views, dom events and custom events