Skip to content

A plugin for using Flurry Analytics inside a Flutter for Mobile app (Android and iOS)

License

Notifications You must be signed in to change notification settings

devansh-ramen/flutter_flurry_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flurry_analytics

A Flutter plugin to use Flurry Analytics. This plugin logs sessions, crash detections, simple event logging, UserId.

Getting Started

This is a Flutter plugin to use Flurry Analytics. It implements native calls to Flurry Android SDK and Flurry iOS SDK. The plugin logs sessions, crash detections, simple event logging, and UserId.

Installation

Add flurry_analytics: ^0.1.2 in your pubspec.yaml dependencies.

How to use

Importing the library :

import 'package:flurry_analytics/flurry_analytics.dart';

Initialization : (Before this, you must have the Android Key and iOS Key, from Flurry dashboard)

await FlurryAnalytics.initialize(androidKey: "xxx", iosKey: "xxx", enableLog: true);

Logging/setting UserId :

FlurryAnalytics.setUserId("1234");

Logging event:

FlurryAnalytics.logEvent("event name");

Logging event with parameters:

FlurryAnalytics.logEvent("event name", { "param1": "12"});

Logging the end of an event (to log duration):

FlurryAnalytics.endTimedEvent("event name");

About

A plugin for using Flurry Analytics inside a Flutter for Mobile app (Android and iOS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •