Web

To track an event using the web package, you can use the corresponding method on the tracker instance. For example:

Example

val properties = WebPageViewedProperties(
    path = path
)
bird.tracker.web.pageViewed(properties)

Methods

pageViewed()

val properties = WebPageViewedProperties(
    path = path
)
bird.tracker.web.pageViewed(properties)

WebPageViewedProperties

pageLostFocus()

val properties = WebPageLostFocusProperties(
    path = path
)
bird.tracker.web.pageLostFocus(properties)

WebPageLostFocusProperties

formViewed()

val properties = WebFormViewedProperties(
    formId = formId
)
bird.tracker.web.formViewed(properties)

WebFormViewedProperties

formSubmitted()

val properties = WebFormSubmittedProperties(
    formId = formId
)
bird.tracker.web.formSubmitted(properties)

WebFormSubmittedProperties

searchSubmitted()

val properties = WebSearchSubmittedProperties(
    searchQuery = searchQuery
)
bird.tracker.web.searchSubmitted(properties)

WebSearchSubmittedProperties

Last updated