Web
To track an event using the web package, you can use the corresponding method on the tracker instance. For example:
Example
Methods
pageViewed()
WebPageViewedProperties
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
pageLostFocus()
WebPageLostFocusProperties
Property
Type
path?
String
referrer?
String
search?
String
title?
String
url?
String
formViewed()
WebFormViewedProperties
Property
Type
form_id?
String
step_id?
String
formSubmitted()
WebFormSubmittedProperties
Property
Type
form_id?
String
step_id?
String
searchSubmitted()
WebSearchSubmittedProperties
Property
Type
search_query?
String
search_results_count?
Number
Last updated