usage 0.0.1 usage: ^0.0.1 copied to clipboard
A Google Analytics wrapper for both command-line and web apps.
usage #
usage
is a wrapper around Google Analytics for both command-line apps and web
apps.
For web apps #
In order to use this library as a web app, import the usage_html.dart
library
and instantiate the AnalyticsHtml
class.
For command-line apps #
In order to use this library as a command-line app, import the usage_io.dart
library and instantiate the AnalyticsIO
class.
Other info #
For both classes, you need to provide a Google Analytics tracking ID, the application name, and the application version.
Your application should provide an opt-in option for the user. If they opt-in,
set the [optIn] field to true
. This setting will persist across sessions
automatically.
For more information, please see the Google Analytics Measurement Protocol Policy.