c45da8c334
* tracking helper functions * track everything * remove extraneous code
9 lines
232 B
TypeScript
9 lines
232 B
TypeScript
import { track } from '@amplitude/analytics-browser'
|
|
import { useEffect } from 'react'
|
|
|
|
export const useTracking = (eventName: string, eventProperties?: any) => {
|
|
useEffect(() => {
|
|
track(eventName, eventProperties)
|
|
}, [])
|
|
}
|