UmamiTracker class

Main class for tracking screen views and events.

Constructors

UmamiTracker({required Dio dio, required String id, required String hostname, required String language, required String screenSize, required String userAgent, String? firstReferrer, bool isEnabled = true})

Properties

dio → Dio
final
firstReferrer String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hostname String
final
id String
final
isEnabled bool
getter/setter pair
language String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize String
final
userAgent String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trackEvent({required String eventType, String? eventValue, String? screenName}) Future<void>
Send an event with the specified eventType. You can optionally provide an eventValue and/or a screenName to attach to the event.
trackScreenView(String screenName, {String? referrer}) Future<void>
Send a pageview using the screenName. If referrer is provided it will be used overriding any permanent value.

Operators

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