@hackler/amplitude-plugin
v1.0.0
Published
Amplitude plugin For Hackle
Downloads
5
Maintainers
Readme
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 })