AnalyticsReporter class

Reports the analytics events of the CLI to PostHog.

Events are sent under the user auth id of the logged in user when it is known, and under the Serverpod CLI id otherwise. Every event carries the Serverpod CLI id in the serverpod_cli_id property.

Constructors

AnalyticsReporter({required String serverpodCliId, required PostHogAnalyticsFactory createPostHogAnalytics})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverpodCliId → String
The persistent, anonymous id of the Serverpod CLI installation, shared with the Serverpod CLI.
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
track(String event, Map<String, dynamic> properties, {String? userAuthId}) → void

Operators

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