<p align="center">
  <h1 align="center">React-Native HMS Analytics</h1>
</p>


<p align="center">
  <a href="https://www.npmjs.com/package/@hmscore/react-native-hms-analytics"><img src="https://img.shields.io/npm/dm/@hmscore/react-native-hms-analytics?color=%23007EC6&style=for-the-badge" alt="downloads"></a>
  <a href="https://www.npmjs.com/package/@hmscore/react-native-hms-analytics"><img src="https://img.shields.io/npm/v/@hmscore/react-native-hms-analytics?color=%23ed2a1c&style=for-the-badge" alt="NPM version"></a>
  <a href="./LICENSE"><img src="https://img.shields.io/npm/l/@hmscore/react-native-hms-analytics.svg?color=%3bcc62&style=for-the-badge" alt="License"></a>
</p>

----

HUAWEI Analytics Kit offers a rich array of preset analytics models that help you gain an in-depth insight into your users, products, and content. With this insight, you can then take a data-driven approach to make informed decisions for product and marketing optimizations.

The React Native Plugin enables communication between HUAWEI Analytics SDK and React Native platform. 

By integrating the React-Native HMS Analytics plugin, you can:

- Collect and report custom events through coding.
- Set a maximum of 25 user attributes.
- Automate event logging and session calculation with predefined event IDs and parameters.

[> Learn More](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/introduction-0000001050157956?ha_source=hms1)

## Installation

```bash
$ npm i @hmscore/react-native-hms-analytics
```

## Documentation

- [Quick Start](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/preparedevenv-0000001051387084?ha_source=hms1)
- [Reference](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-References/overview-0000001053026463?ha_source=hms1)

### Additional Topics

- [Accessing HUAWEI Analytics](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-accessing-0000001050161888?ha_source=hms1)

## Questions or Issues

If you have questions about how to use HMS samples, try the following options:
- [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services) is the best place for any programming questions. Be sure to tag your question with **huawei-mobile-services**.
- [Github](https://github.com/HMS-Core/hms-react-native-plugin) is the official repository for these plugins, You can open an issue or submit your ideas.
- [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101187876626530001&ha_source=hms1) HMS Core Module is great for general questions, or seeking recommendations and opinions.
- [Huawei Developer Docs](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1) is place to official documentation for all HMS Core Kits, you can find detailed documentations in there.

If you run into a bug in our samples, please submit an issue to the [GitHub repository](https://github.com/HMS-Core/hms-react-native-plugin).

## License

Huawei React-Native Plugin is licensed under [Apache 2.0 license](LICENSE)
