mapp-intelligence-reactnative-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

mapp-intelligence-reactnative-plugin

The MappIntelligence SDK allows you to track user activities, screen flow and media usage for an app. All data is send to the MappIntelligence tracking system for further analysis.

Installation

npm install mapp-intelligence-reactnative-plugin

Usage

import { MappIntelligencePlugin } from 'mapp-intelligence-reactnative-plugin';

const App = () => {
  const TRACKING_IDS_ARRAY = ... ;
  const TRACKING_DOMAIN = ... ;

  async function initMappTracking() {
    await MappIntelligencePlugin.setAnonymousTracking(false);
    await MappIntelligencePlugin.initWithConfiguration(
      TRACKING_IDS_ARRAY,
      TRACKING_DOMAIN
    );
    await MappIntelligencePlugin.setLogLevel(LogLevel.all);
    await MappIntelligencePlugin.setBatchSupportEnabled(false);
    await MappIntelligencePlugin.setBatchSupportSize(150);
    await MappIntelligencePlugin.setRequestInterval(1);
    await MappIntelligencePlugin.setRequestPerQueue(300);
    await MappIntelligencePlugin.setShouldMigrate(true);
    await MappIntelligencePlugin.setSendAppVersionInEveryRequest(true);
    await MappIntelligencePlugin.setEnableBackgroundSendout(true);
    await MappIntelligencePlugin.setExceptionLogLevel(ExceptionType.all);
    await MappIntelligencePlugin.setEnableUserMatching(true);

    await MappIntelligencePlugin.build();
  }
};
// ...

Read documentation

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i mapp-intelligence-reactnative-plugin

Weekly Downloads

18

Version

1.0.3

License

MIT

Unpacked Size

226 kB

Total Files

81

Last publish

Collaborators

  • semsudin.tafilovic