usage_io library

In order to use this library import the usage_io.dart file and instantiate the AnalyticsIO class.

You'll need to provide a Google Analytics tracking ID, the application name, and the application version.

Classes

Analytics
An interface to a Google Analytics session.
AnalyticsIO
An interface to a Google Analytics session, suitable for use in command-line applications.
AnalyticsMock
A no-op implementation of the Analytics class. This can be used as a stand-in for that will never ping the GA server, or as a mock in test code.
AnalyticsTimer
An object, returned by Analytics.startTimer, that is used to measure an asynchronous process.

Enums

AnalyticsOpt

Functions

sanitizeStacktrace(dynamic st, {bool shorten = true}) String
Sanitize a stacktrace. This will shorten file paths in order to remove any PII that may be contained in the full file path. For example, this will shorten file:///Users/foobar/tmp/error.dart to error.dart.