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
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
pageLostFocus()
val properties = WebPageLostFocusProperties(
path = path
)
bird.tracker.web.pageLostFocus(properties)
WebPageLostFocusProperties
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
formViewed()
val properties = WebFormViewedProperties(
formId = formId
)
bird.tracker.web.formViewed(properties)
WebFormViewedProperties
Property
Type
form_id?
String
step_id?
String
formSubmitted()
val properties = WebFormSubmittedProperties(
formId = formId
)
bird.tracker.web.formSubmitted(properties)
WebFormSubmittedProperties
Property
Type
form_id?
String
step_id?
String
searchSubmitted()
val properties = WebSearchSubmittedProperties(
searchQuery = searchQuery
)
bird.tracker.web.searchSubmitted(properties)
WebSearchSubmittedProperties
Property
Type
search_query?
String
search_results_count?
Number
Last updated
Was this helpful?