jasonzissman / TimeMe.js

A JavaScript library to accurately time how long a user views a web page, disregarding idle time and time when the tab or window is minimized.
MIT License
592 stars 124 forks source link

How would you save timing data (per pageview or session) to Google Analytics? #65

Open amitkoth opened 4 years ago

amitkoth commented 4 years ago

The most logical place for timing data to go might be existing analytics tools, such as Google Analytics.

Is it possible to use an existing session or custom dimension to send the websocket output (time on page) to GA for better analysis, in combination with all other site metrics?