Browser Metrics:Data Collectors: Difference between revisions

Jump to navigation Jump to search
Line 96: Line 96:
Load events record a document being loaded into a DOM Window.
Load events record a document being loaded into a DOM Window.


Element name: <tt>load</tt>
; Element <tt>&lt;load&gt;</tt>
 
: ''Attributes:''
Attributes:
:; <tt>window = [integer]</tt>
<tt>window = [integer window id]</tt>
:: The id of the window where the document was loaded.
 
:; <tt>origin = [string]</tt> (optional)
The id of the window where the document was loaded.
:: The action which initiated the load.  Possible values include:
 
::* <tt>typed</tt>: The document URI was typed (or pasted) by the user.
<tt>origin = [string]</tt> (optional)
::* <tt>link</tt>: The user followed a link to the document URI.
 
::* <tt>session-history</tt>: The user used back/forward navigation to load the document.
The action which initiated the load.  Possible values include:
::* <tt>reload</tt>: The user used the reload button or keyboard shortcut to reload the document.
* <tt>typed</tt>: The document URI was typed (or pasted) by the user.
::* <tt>global-history</tt>: The user loaded the page by selecting it from their global history.
* <tt>link</tt>: The user followed a link to the document URI.
::* <tt>bookmark</tt>: The user loaded the page by selecting it from the bookmarks menu, bookmarks toolbar, or bookmarks management UI.
* <tt>session-history</tt>: The user used back/forward navigation to load the document.
::* <tt>script</tt>: A script executing on a page loaded the document.
* <tt>reload</tt>: The user used the reload button or keyboard shortcut to reload the document.
::* <tt>refresh</tt>: A meta-refresh loaded the document.
* <tt>global-history</tt>: The user loaded the page by selecting it from their global history.
::* <tt>external</tt>: The document URI was passed in from an external application.
* <tt>bookmark</tt>: The user loaded the page by selecting it from the bookmarks menu, bookmarks toolbar, or bookmarks management UI.
:; <tt>loadtime = [integer]</tt>
* <tt>script</tt>: A script executing on a page loaded the document.
:: The time from the initiation of the load until the document is complete (which includes all images, stylesheet, etc) in milliseconds.
* <tt>refresh</tt>: A meta-refresh loaded the document.
:; <tt>bfCacheHit = [boolean]</tt> (optional)
* <tt>external</tt>: The document URI was passed in from an external application.
:: Whether the document presentation was loaded from the session history cache.  If not specified, assumed to be false.
 
<tt>loadtime = [milliseconds]</tt>
 
The time from the initiation of the load until the document is complete (which includes all images, stylesheet, etc) in milliseconds.
 
<tt>bfCacheHit = [boolean]</tt> (optional)
 
Whether the document presentation was loaded from the session history cache.  If not specified, assumed to be false.


Todo / possible todo items:
Todo / possible todo items:
* cache size before/after load
* cache size before/after load
* content viewer size estimate
* content viewer size estimate
* cache hit
* cache hit
* session history index
* session history index
* last visit date
* last visit date
* tagged/bookmarked
* tagged/bookmarked


===UI Event===
===UI Event===
272

edits

Navigation menu