show page views and dom events from JavaScript API