Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nr-page-duration

newrelic36Unlicense1.0.1

Record page duration on your pages

nr, newrelic, page, duration, timing, time

readme

Page Duration

Page duration - the time spent by a user on a page.

This project will record page duration in Insights via the Browser agent.

Usage

Install the package via npm:

npm install --save nr-page-duration

Be sure to require it in your code before compiling it:

require('nr-page-duration')

Lastly, check out the data in Insights via a query similar to:

SELECT histogram(duration, 1200, 20) FROM PageAction WHERE actionName = 'PageDuration' SINCE 1 month ago

This will produce a graph similar to:

screenshot