Skip to content

BASF-Mobile-Solutions/piano_analytics

Repository files navigation

basf_flutter_piano_analytics

ci pub package License: MIT coverage

A BASF Flutter plugin for Piano Analytics

Installing

Add BASF Flutter plugin to your pubspec.yaml file:

dependencies:
  piano_flutter_plugin:

Import the library into your .dart file:

import 'package:piano_flutter_plugin/piano_flutter_plugin.dart';

Piano Flutter SDK

  • Init SDK

pianoFlutterPlugin = PianoFlutterPlugin();
  • Config SDK

// config with domain and SiteId
pianoFlutterPlugin.config("your domain",000000);

Track event

pianoFlutterPlugin.trackEvent('page.display',{
        "page": "page name ios 09 05", // Event properties
        "page_chapter1": "chapter 1",
        "page_chapter2": "chapter 2",
        "page_chapter3": "chapter 3"
      });
/// etc...

You can find how to use all of this components at the example project

About

A flutter package to use piano analytics native sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published