# analytics-app

> `analytics-app` is a React package that provides an easy way to add event listeners to your entire web application. It exports two components: `EventAnalytics` and `encryptData`.

Latest version **1.0.25** (published 2023-05-15) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install analytics-app
pnpm add analytics-app
yarn add analytics-app
bun add analytics-app
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.25 |
| Published | 2023-05-15 |
| First published | 2023-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 96 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | avivashishta29 |

## Links

- npm: https://www.npmjs.com/package/analytics-app
- npm.io page: https://npm.io/package/analytics-app

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [jquery](https://npm.io/package/jquery.md) ^3.6.4
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.1.1
- [js-cookie](https://npm.io/package/js-cookie.md) ^3.0.5

## Recent versions

- 1.0.25 (latest) — 2023-05-15
- 1.0.24 — 2023-05-15
- 1.0.23 — 2023-05-15
- 1.0.22 — 2023-05-11
- 1.0.21 — 2023-05-11
- 1.0.20 — 2023-05-11
- 1.0.19 — 2023-05-11
- 1.0.18 — 2023-05-11
- 1.0.16 — 2023-05-11
- 1.0.15 — 2023-05-11
- 1.0.14 — 2023-05-11
- 1.0.13 — 2023-05-11
- 1.0.12 — 2023-05-11
- 1.0.11 — 2023-05-08
- 1.0.10 — 2023-05-08
- … 10 more at https://npm.io/package/analytics-app/versions

## README

# analytics-app

`analytics-app` is a React package that provides an easy way to add event listeners to your entire web application. It exports two components: `EventAnalytics` and `encryptData`.

## Installation

To install the package, run:

```bash
npm install analytics-app
Usage
EventAnalytics
Import EventAnalytics in your main App.js file and include it in your app:

javascript
Copy code
import { EventAnalytics } from 'analytics-app';

function App() {
  return (
    <div className="App">
      {/* Your app components */}
      <EventAnalytics />
    </div>
  );
}

export default App;
```

## EventAnalytics will automatically add event listeners to your entire website.

## encryptData

encryptData is a function that takes a string as input and returns an encrypted version of it. You can use it to encrypt sensitive data, such as location information, before passing it to the EventAnalytics component.

Here's an example of how to use encryptData:

```bash
import { encryptData } from 'analytics-app';

// Get the location data as a string
const locationData = JSON.stringify(location);

// Encrypt the location data
const encryptedLocationData = encryptData(locationData);

// Use the encrypted data in your component
return (
  <div
    className="App"
    id="App"
    event-analytics={'app'}
    user-data={encryptedLocationData}
  >
    {/* Your app components */}
  </div>
);
```

# Documentation

For more information and detailed documentation, please visit the GitHub repository.

# License

This package is released under the Acciojob License.

---
_Source: https://npm.io/package/analytics-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
