adcio_analytics 1.0.0 copy "adcio_analytics: ^1.0.0" to clipboard
adcio_analytics: ^1.0.0 copied to clipboard

discontinued

collect logs for event analysis of ADCIO projects.

adcio_analytics #

pub package

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, ... ),
      },
    ),
  );

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'
    );
  },
);

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
    );
  },
);

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 app@corca.ai.

4
likes
140
points
100
downloads

Publisher

verified publishercorca.ai

Weekly Downloads

collect logs for event analysis of ADCIO projects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

adcio_core, flutter, http, visibility_detector

More

Packages that depend on adcio_analytics