gtag_analytics 0.1.7+2

Dart js
Flutter web

A minimal Google Analytics interop library. Allows triggering page views and other events from Dart code.

2
likes
90 / 110
pub points
55 %
popularity

We analyzed this package on Sep 26, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/gtag_analytics_example.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 8 out of 8 API elements (100.0 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime native

Because:

  • package:gtag_analytics/gtag_analytics.dart that imports:
  • package:gtag_analytics/src/gtag_analytics.dart that imports:
  • package:gtag_analytics/src/interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 7 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/src/gtag_analytics.dart:13:33

   ╷
13 │   static final Options _empty = new Options();
   │                                 ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/gtag_analytics.dart

INFO: Use `=` to separate a named parameter from its default value.

lib/src/gtag_analytics.dart:26:37

   ╷
26 │   GoogleAnalytics({this.failSilently: false});
   │                                     ^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/gtag_analytics.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
js^0.6.10.6.20.6.2
meta^1.1.21.2.31.2.3

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

2
likes
90
pub points
55%
popularity

A minimal Google Analytics interop library. Allows triggering page views and other events from Dart code.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

filip.hracek@gmail.com

License

MIT (LICENSE)

Dependencies

js, meta

More

Packages that depend on gtag_analytics