0 purchases
adcio analytics
adcio_analytics #
Flutter plugin that collects logs for event analysis of ADCIO projects.
To learn more about ADCIO, please visit the ADCIO website
Getting Started #
To get started with ADCIO account, please register ADCIO account
Usage #
There is a simple use example:
import 'package:adcio_analytics/adcio_analytics.dart';
AdcioAnalytics.init('SAMPLE_CLIENT_ID') // create singleton objectㅏ
final option = AdcioLogOption.fromMap(suggestion.logOptions);
/// impression Widget example
return AdcioImpressionDetector(
option: option,
child: YOUR_PRODUCT_WIDGET(
...
onTap: () {
/// onClick example
AdcioAnalytics.onClick(option: option);
/// onPageView example
AdcioAnalytics.onPageView(path: 'Detail/${product.id}');
Navigator.push(context, ... ),
},
),
);
copied to clipboard
There is a AddToCart example:
import 'package:adcio_analytics/adcio_analytics.dart';
return YOUR_PRODUCT_CART_WIDGET(
onTap: () {
final option = AdcioLogOption.fromMap(suggestion.logOptions);
// onAddToCart example
AdcioAnalytics.onAddToCart(
productIdOnStore: 'SAMPLE_PRODUCT_ID_ON_STORE'
);
},
);
copied to clipboard
There is a purchase example:
import 'package:adcio_analytics/adcio_analytics.dart';
return YOUR_PAYMENT_SUBMIT_WIDGET(
onTap: () {
final option = AdcioLogOption.fromMap(suggestion.logOptions);
// onAddToCart example
AdcioAnalytics.onPurchase(
orderId: 'SAMPLE_ORDER_ID',
productIdOnStore: 'SAMPLE_PRODUCT_ID_ON_STORE',
amount: product.price.toInt() // actual purchase price
);
},
);
copied to clipboard
To learn more about usage of plugin, please visit the AdcioAnalytics Usage documentation.
Issues and feedback #
If the plugin has issues, bugs, feedback, Please contact [email protected].
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.