include page views and dom events when using JavaScript API