ClickstreamAnalyticsPlusWeb class

Web platform implementation for Clickstream Analytics Plus.

Registers itself as the platform instance and delegates all analytics calls to the JS SDK via static interop.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableLogging(bool enabled) Future<void>
Enables or disables logging for the analytics SDK. (No-op on web.)
override
flushEvents() Future<void>
Flushes all queued analytics events to the backend.
override
getSdkVersion() Future<String?>
Gets the SDK version from the web Clickstream SDK, if available.
override
initialize({required String appId, required String endpoint, bool? logEvents, bool? compressEvents, int? sessionTimeoutMs, int? sendEventIntervalMs, Map<String, dynamic>? initialGlobalAttributes}) Future<bool>
Initializes the Clickstream Analytics SDK on the web platform.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseSession() Future<void>
Pauses the current analytics session (no-op if unsupported).
override
recordEvent(String name, {Map<String, dynamic>? attributes}) Future<void>
Records an analytics event with the given name and optional attributes. Calls the JS SDK's recordEvent method.
override
removeGlobalAttribute(String key) Future<void>
Removes a global attribute by key (no-op if unsupported).
override
resumeSession() Future<void>
Resumes the current analytics session (no-op if unsupported).
override
setGlobalAttributes(Map<String, dynamic> attributes) Future<void>
Sets global attributes for all analytics events.
override
setUserAttributes(Map<String, dynamic> attributes) Future<void>
Sets user attributes for analytics tracking.
override
setUserId(String userId) Future<void>
Sets the user ID for analytics tracking.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Registers this web implementation with the Flutter plugin registrar.