snowplow_flutter_tracker 0.10.0 copy "snowplow_flutter_tracker: ^0.10.0" to clipboard
snowplow_flutter_tracker: ^0.10.0 copied to clipboard

outdated

Snowplow event tracker for Flutter. Add analytics to your Flutter apps and games

Flutter for Snowplow #

Thank you to Patrik Szabó for his initial work on this library!

Overview #

A Flutter plugin that provides analysis to your Dart software with the Snowplow event tracker for Flutter.
With this tracker you can collect event data from your Flutter applications, games or frameworks.

Versions #

Snowplow Android Tracker v1.4.0
Snowplow iOS Tracker v1.3.0

Docs #

Basics on Android: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/android-tracker/
Basics on iOS: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/objective-c-tracker/
Android SDK: https://github.com/snowplow/snowplow-android-tracker
iOS SDK: https://github.com/snowplow/snowplow-objc-tracker

Getting started #

Initialize it then call the relevant tracking method:

import 'package:snowplow_flutter_tracker/snowplow_flutter_tracker.dart';

/* Initialize it */
SnowplowFlutterTracker _tracker;

final emitter = EmitterBuilder('test-uri')
    .setRequestSecurity(RequestSecurity.HTTPS)
    .build();

final tracker =
    TrackerBuilder(emitter, 'eventTracker', 'test-appId')
        .setMobileContext(true)
        .build();

_tracker = SnowplowFlutterTracker();
_tracker.initialize(tracker);

/* Usage */
final eventJson = SelfDescribingJsonBuilder()
  .setSchema('iglu:mobile/generic/jsonschema/1-0-0')
  .setPayload(
      <String, Object>{'name': 'test-name', 'parameters': 'test-parameters'}).build();

final selfDescribingEvent =
  SelfDescribingBuilder().setEventData(eventJson).build();

_tracker.track(selfDescribingEvent);
6
likes
0
pub points
47%
popularity

Publisher

verified publisherhomex.com

Snowplow event tracker for Flutter. Add analytics to your Flutter apps and games

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, built_value, flutter

More

Packages that depend on snowplow_flutter_tracker