@hackler/amplitude-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Hackle Amplitude Plugin

Install

npm install @hackler/amplitude-plugin --save

Usage

Install & add Amplitude plugin

import { add } from "@amplitude/analytics-browser"
import { createInstance } from "@hackler/javascript-sdk"
import { HackleAmplitudePlugin } from "@hackler/amplitude-plugin"

const hackleClient = Hackle.createInstance("YOUR_SDK_KEY")
add(new HackleAmplitudePlugin(hackleClient))

Record events

import { track } from "@amplitude/analytics-browser"

track(EVENT_KEY, eventProperties)
// or
hackleClient.track({ key: EVENT_KEY, properties: eventProperties })

Package Sidebar

Install

npm i @hackler/amplitude-plugin

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.93 MB

Total Files

13

Last publish

Collaborators

  • hackler