usage_html library
In order to use this library import the usage_html.dart
file and
instantiate the AnalyticsHtml 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.
- AnalyticsHtml
- An interface to a Google Analytics session, suitable for use in web apps.
- 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
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
toerror.dart
.