Sign inGet started

Web

WebTracker

Defines the tracker class for the web semantic package

Example

To track an event using the web package, you can use the corresponding method on the tracker instance:
Przykład kodu
Bird.tracker.web.pageViewed(event_props, event_opts);

Extends

  • Tracker

Methods

formSubmitted()
Przykład kodu
formSubmitted(props?: WebFormSubmittedProperties, opts?: BirdEventTrackingOptions): void
Parameters
props?: WebFormSubmittedProperties
opts?: BirdEventTrackingOptions
Returns
void
formViewed()
Przykład kodu
formViewed(props?: WebFormViewedProperties, opts?: BirdEventTrackingOptions): void
Parameters
props?: WebFormViewedProperties
opts?: BirdEventTrackingOptions
Returns
void
pageViewed()
Przykład kodu
pageViewed(props?: WebPageViewedProperties, opts?: BirdEventTrackingOptions): void
Parameters
props?: WebPageViewedProperties
opts?: BirdEventTrackingOptions
Returns
void
searchSubmitted()
Przykład kodu
searchSubmitted(props?: WebSearchSubmittedProperties, opts?: BirdEventTrackingOptions): void
Parameters
props?: WebSearchSubmittedProperties
opts?: BirdEventTrackingOptions
Returns
void

WebFormSubmittedProperties

Properties for web/form-submitted event

Indexable

[k: string]: unknown

Properties

PropertyType
form_id?string
step_id?string

WebFormViewedProperties

Properties for web/form-viewed event

Indexable

[k: string]: unknown

Properties

PropertyType
form_id?string
step_id?string

WebPageViewedProperties

Properties for web/page-viewed event

Indexable

[k: string]: unknown

Properties

PropertyType
path?string
referrer?string
search?string
title?string
url?string

WebSearchSubmittedProperties

Properties for web/search-submitted event

Indexable

[k: string]: unknown

Properties

PropertyType
search_query?string
search_results_count?number