The database where to store logged data.
The menu manager with menu items to start watching.
Database where to store logged data.
Map from item IDs to onclick callbacks attached to them. This is required to detach such handlers from the item nodes if need be.
Timestamp of the page load. This is required to measure the visit duration on page leave.
Start logging item clicks and page visits.
The menu manager with menu items to watch.
Handle an item click (click
event) by logging it into the database.
The click
event issued on the item node click.
The clicked item.
Handle a page leave (`beforeunload event) by logging the visit into the database.
The beforeunload
event issued on the page leave.
Start logging clicks on the nodes of all the items of all menus.
The menu manager handling all the items to start watching.
Start logging clicks on the nodes of the given items.
The items to start watching.
Start logging clicks on the nodes of all the items of the given menu.
The menu containing items to start watching.
Start logging the current page visit by listening for a beforeunload
event.
Stop logging clicks on the nodes of all the items of all menus.
The menu manager handling all the items to stop watching.
Stop logging clicks on the nodes of the given items.
The items to stop watching.
Stop logging clicks on the nodes of all the items of the given menu.
The menu containing items to stop watching.
Generated using TypeDoc
Create a new instance of data logger.