google_analytics_legacy 0.0.12 google_analytics_legacy: ^0.0.12 copied to clipboard
Flutter plugin for sending events to Google Analytics (Universal Analytics).
import 'package:google_analytics_legacy/googleAnalytics.dart';
void main(List<String> args) async {
final ga = await GoogleAnalytics.instance;
final tracker = await ga.newTracker("UA-xxxxxx");
final screenView = ScreenViewBuilder();
await tracker.setScreenName("Flutter");
await tracker.send(screenView);
}