percept_flutter 0.0.1 copy "percept_flutter: ^0.0.1" to clipboard
percept_flutter: ^0.0.1 copied to clipboard

Percept Flutter Plugin Sdk

Percept-flutter #

Introducing the official Percept Flutter SDK

Getting Started #

1. Install #

Steps #

  1. Add the following lines to your package's pubspec.yaml file to include the dependency:
   dependencies:
      percept_flutter: ^1.0.0
  1. To install the package, use the following command in your command line interface:
   $ flutter pub get
  1. Import the package in your Dart code to make it available for use:
   import 'package:percept_flutter/percept_flutter.dart'
  1. Begin the initialization process for the Percept
import 'package:percept_flutter/percept_flutter.dart'

class YourClassState extends State<YourClass> {
  Percept _percept;
  
  @override
  void initState() {
    super.initState();
    _percept=Percept()
  }
...

2. Get global properties #

After successfully initializing the SDK, you can retrieve the global properties using the following function. Percept automatically generates a unique ID and stores it in local storage or a cookie.

// get global properties
_percept.getGlobalProperties(includePropList, excludePropList);

3. Send Data #

After successfully initializing the SDK, you can capture event using the following function. Percept automatically generates a unique ID and stores it in local storage or a cookie.


_percept.capture('AddToCart', properties: {'OrderId': 'O1','UserId':'U1'});

Support #

If you have any questions, issues, or need assistance with Percept, here are the available support channels:

Please feel free to reach out to us with any concerns or inquiries. We'll do our best to assist you and provide timely support.