digital-analytics-program / gov-wide-code

Provides a set of javascript files and documentation to implement web analytics on US federal websites
http://www.digital.gov/dap
104 stars 55 forks source link

Add new event names to be collected with the web-vitals.js library to measure page experience #136

Open ethangardner opened 1 month ago

ethangardner commented 1 month ago

The web-vitals.js library from Google has the ability to collect web performance optimization data that measures the type of experience that real users have as they are interacting with features and pages. These events have defined names that aren't part of the eligible event names that are part of the e_n regex and would fall back to dap_event.

The names of these page experience events was added to the eligible list of events so a solution could be implemented to get insight on the page experience of real users.

Additionally, another acceptable, more permissive key was added for people who wish to collect more performance data using apis like: