WebActivityTracking class Initialization and configuration Sessions and data model

Configuration for the behavior of page tracking on Web. Initializing the configuration will inform SnowplowObserver observers to auto track PageViewEvent events instead of ScreenView events on navigation changes. Further, setting the minimumVisitLength and heartbeatDelay properties will enable activity tracking using 'page ping' events on Web.

Activity tracking monitors whether a user continues to engage with a page over time, and record how he / she digests content on the page over time. That is accomplished using 'page ping' events. If activity tracking is enabled, the web page is monitored to see if a user is engaging with it. (E.g. is the tab in focus, does the mouse move over the page, does the user scroll etc.) If any of these things occur in a set period of time, a page ping event fires, and records the maximum scroll left / right and up / down in the last ping period. If there is no activity in the page (e.g. because the user is on a different tab in his / her browser), no page ping fires.

Only available on Web, ignored on mobile.

Annotations

Constructors

WebActivityTracking({int? minimumVisitLength, int? heartbeatDelay, bool trackPageViewsInObserver = true})
const

Properties

enableActivityTracking bool
Indicates whether activity tracking is enabled or not.
no setter
hashCode int
The hash code for this object.
no setterinherited
heartbeatDelay int?
Number of seconds between each page ping, once they have started.
final
minimumVisitLength int?
Time period from page load before the first page ping occurs, in seconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackPageViewsInObserver bool
Indicates whether to track page views from navigator observer.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited