@datafloww/analytics
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

NPM Version npm bundle size GitHub

Installation

To install the @datafloww/analytics package, run:

npm install @datafloww/analytics

Initialization

To initialize the analytics library, import the Analytics class and call the init method with your write key:

import { Analytics } from "@datafloww/analytics";

const analytics = Analytics.init({ key: "YOUR_WRITE_KEY" });

Usage

You can now use the analytics instance to track custom events. Here is an example:

// Example: Track a custom event
analytics.track("event_name", {
    property1: "value1",
    property2: "value2",
});

Package Sidebar

Install

npm i @datafloww/analytics

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

18.7 kB

Total Files

8

Last publish

Collaborators

  • tahahameed23