Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Snowplow event tracker for Flutter. Add analytics to your Flutter apps and games http://snowplowanalytics.com

License

Notifications You must be signed in to change notification settings

epidemicsound/snowplow-flutter-tracker

 
 

Repository files navigation

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.7.1

Snowplow iOS Tracker v1.6.2

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
final emitter = Emitter(uri: 'your-collector-endpoint-url');
final tracker = Tracker(
    emitter: emitter,
    namespace: 'your-namespace',
    appId: 'your-appId',
);
var _tracker = SnowplowFlutterTracker();
_tracker.initialize(tracker);

// Usage
final selfDescribingJson = SelfDescribingJson(
    schema: 'iglu:com.acme/event/jsonschema/1-0-0',
    payload: <String, Object>{'message': 'hello world'},
);
final selfDescribing = SelfDescribing(selfDescribingJson);
_tracker.track(selfDescribing);

About

Snowplow event tracker for Flutter. Add analytics to your Flutter apps and games http://snowplowanalytics.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 44.5%
  • Kotlin 27.5%
  • Swift 23.3%
  • Ruby 2.9%
  • Other 1.8%