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)let properties = WebPageViewedProperties(
path: path
)
bird.tracker.web.pageViewed(properties)const properties: WebPageViewedProperties = {
path: path
};
Bird.tracker.web.pageViewed(properties, event_opts);Methods
pageViewed()
val properties = WebPageViewedProperties(
path = path
)
bird.tracker.web.pageViewed(properties)let properties = WebPageViewedProperties(
path: path
)
bird.tracker.web.pageViewed(properties)const properties: WebPageViewedProperties = {
path: path
};
Bird.tracker.web.pageViewed(properties, event_opts);WebPageViewedProperties
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
pageLostFocus()
val properties = WebPageLostFocusProperties(
path = path
)
bird.tracker.web.pageLostFocus(properties)let properties = WebPageLostFocusProperties(
path: path
)
bird.tracker.web.pageLostFocus(properties)const properties: WebPageLostFocusProperties = {
path: path
};
Bird.tracker.web.pageLostFocus(properties, event_opts);WebPageLostFocusProperties
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
formViewed()
val properties = WebFormViewedProperties(
formId = formId
)
bird.tracker.web.formViewed(properties)let properties = WebFormViewedProperties(
formId: formId
)
bird.tracker.web.formViewed(properties)const properties: WebFormViewedProperties = {
form_id: form_id
};
Bird.tracker.web.formViewed(properties, event_opts);WebFormViewedProperties
Property
Type
form_id?
String
step_id?
String
formSubmitted()
val properties = WebFormSubmittedProperties(
formId = formId
)
bird.tracker.web.formSubmitted(properties)let properties = WebFormSubmittedProperties(
formId: formId
)
bird.tracker.web.formSubmitted(properties)const properties: WebFormSubmittedProperties = {
form_id: form_id
};
Bird.tracker.web.formSubmitted(properties, event_opts);WebFormSubmittedProperties
Property
Type
form_id?
String
step_id?
String
searchSubmitted()
val properties = WebSearchSubmittedProperties(
searchQuery = searchQuery
)
bird.tracker.web.searchSubmitted(properties)let properties = WebSearchSubmittedProperties(
searchQuery: searchQuery
)
bird.tracker.web.searchSubmitted(properties)const properties: WebSearchSubmittedProperties = {
search_query: search_query
};
Bird.tracker.web.searchSubmitted(properties, event_opts);WebSearchSubmittedProperties
Property
Type
search_query?
String
search_results_count?
Number
Last updated
Was this helpful?

