Easily track how long users spend on your website with this simple directive. The durations that are tracked are pre-defined.
Include the directive in your app, and simply add the time tracker element inside index.html:
<time-tracker></time-tracker>Events will be logged in Google Analytics as follows:
- Category:
Time Tracker - Event Action:
Seconds elapsed - Event Label:
<number of seconds spent on page>