1,007
edits
Line 121: | Line 121: | ||
=== Example of storing event objects === | === Example of storing event objects === | ||
In Observer code: | |||
this._dataStore.storeEvent({ | |||
event_code: TabsExperimentConstants.DRAG_EVENT, | |||
timestamp: Date.now(), | |||
tab_position: index, | |||
num_tabs: event.target.parentNode.itemCount, | |||
ui_method: TabsExperimentConstants.UI_CLICK, | |||
tab_window: windowId | |||
}); | |||
This anonymous event object passed to storeEvent has properties matching the properties of the columns specified in dataStoreInfo; it provides all the expected properties except for tab_site_hash, which will therefore default to 0. | |||
== webContent == | == webContent == | ||
== Observer == | == Observer == |
edits