-
Notifications
You must be signed in to change notification settings - Fork 18
Intents
Brave will log intent signals to be stored in the Vault. What's an intent signal? Lots of user actions. The following is a list of intent signals, as well as the intent keys that they will be captured under in the vault.
Page Visits
Triggered when a new page loads. This will happen either via direct user navigation (typing into the url bar), or when clicking on links.
{
"type": "browser.site.visit",
"payload": {
"url": "http://..."
}
}
Page Exits
Triggered when a user leaves a page either by closing the tab, or navigating to a new page. This contains the known amount of time on the page.
{
"type": "browser.site.exit",
"payload": {
"url": "http://...",
"time": 100000
}
}
Context Menu
Triggered when the user uses an option in a context menu.
{
"type": "browser.site.contextmenu",
"payload": {
"href": "http://...",
"action": "download|newtab|newwindow|tag",
"type": "image|video|audio|link|element"
}
}
Form Submission
Triggered when the user submits a form.
{
"type": "browser.form.submit",
"payload": {
"href": "http://...",
"locator": "#css.selector",
"values": {}
}
}
Form Save
Triggered when the user saves form information for later editing/autofilling.
{
"type": "browser.form.save",
"payload": {
"href": "http://...",
"locator": "#css.selector",
"data": {
"field1": "Form Data Here"
}
}
}
Form Autofill
Triggered when the user autofills a form.
{
"type": "browser.form.autofill",
"payload": {
"href": "http://...",
"locator": "#css.selector",
"lookupId": "possibly.links.to.a.record"
}
}
Bookmarking, site tagging
Triggered when the user tags a site through some action like bookmarking or adding the site to a reading list.
{
"type": "browser.site.tag",
"payload": {
"url": "http://...",
"tag": "bookmark"
}
}
Search Suggestion Selection
Triggered when the user selects a search suggestion from the url bar, intending to navigate to that url.
{
"type": "browser.suggestion.visit",
"payload": {
"url": "http://...",
"terms": "my entered search term",
"source": "bookmarks|history|searchprovider"
}
}
Opening the browser
When a browser window is opened.
{
"type": "browser.app.open",
"payload": {
"timestamp": "Date.now()",
"windowId": "someid"
}
}
Closing the browser
When a browser window is closed.
{
"type": "browser.app.close",
"payload": {
"timestamp": "Date.now()",
"windowId": "someid"
}
}
Minimizing the browser
When a browser window is minimized.
{
"type": "browser.app.minimize",
"payload": {
"timestamp": "Date.now()",
"windowId": "someid"
}
}
Mazimizing the browser
When a browser window is maximized.
{
"type": "browser.app.maximize",
"payload": {
"timestamp": "Date.now()",
"windowId": "someid",
"fullscreen": true
}
}
TODO:
- Scrolling ad and other content into and out of view.
- Eye tracking (see https://github.com/wallarelvo/camgaze.js/tree/master).
- Idle time based on all input devices.