di_analytics

Creator: coderz1093

Last updated:

0 purchases

di_analytics Image
di_analytics Images

Languages

Categories

Add to Cart

Description:

di analytics

DI Analytics SDK for Flutter #
Requirements #
Android SDK 23+
Kotlin 1.4.32+
iOS 9.0+
Dart 2.12.0+
Installation #
Add dependency to your pubspec.yaml:
di_analytics:
path: [path to this package]
copied to clipboard
Then follow instructions for:

iOS
Android

Usuage #
Configure SDK before usage:
//Only iOS need this, on android please configure in AndroidManifest
DIAnalytics.instance.configure(apiKey: "API-KEY", trackingUrl: TRACKING_URL);
copied to clipboard
Log an event
final parameters = {"pid": "p001"};
DIAnalytics.instance.logEvent("in_app_purchase", parameters: parameters);
copied to clipboard
Set user info
final info = {"name": "John"};
DIAnalytics.instance.setUser("uid_1", info: info);
copied to clipboard
Add shared properties for all events
//set value = nil to remove shared parameters
final sharedParams = {
"utm_source": "google",
};
DIAnalytics.instance.addSharedParameters(sharedParams);
copied to clipboard
Author #
liemvu, [email protected]
License #
DI Analytics SDK for Flutter is available under the Creative Common license. See the LICENSE file for more info.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.