0.2.2 • Published 3 years ago
@hackthenorth/analytics v0.2.2
Analytics
GDPR-compliant analytics suite.
Installation
npm install @hackthenorth/analytics
Usage
useAnalyticsSpan
is just useEffect
to monitor the lifespan (aka how long it stays alive) of some component.
If you want to handle things yourself, use startSpan
and endSpan
directly.
If you want to log things that are not durations, just call log
directly, passing duration 0
.
If you want to log it immediately, call logImmediate
.
ezpz