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

PropertyType

path?

String

referrer?

String

search?

String

title?

String

url?

String

pageLostFocus()

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

WebPageLostFocusProperties

PropertyType

path?

String

referrer?

String

search?

String

title?

String

url?

String

formViewed()

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

WebFormViewedProperties

PropertyType

form_id?

String

step_id?

String

formSubmitted()

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

WebFormSubmittedProperties

PropertyType

form_id?

String

step_id?

String

searchSubmitted()

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

WebSearchSubmittedProperties

PropertyType

search_query?

String

search_results_count?

Number

Last updated