1.0.25 • Published 12 months ago

analytics-app v1.0.25

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

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:

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:

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.

1.0.25

12 months ago

1.0.24

12 months ago

1.0.23

12 months ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago