@mbinjamil/matomo-client / trackEvent
trackEvent(
category
,action
,name
,value
):void
Logs an event of interest
• category: string
An event category (Videos, Music, Games...)
• action: string
An event action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)
• name: string
An optional event name
• value: number
An optional numeric value
void
import { trackEvent } from "@mbinjamil/matomo-client";
trackEvent("ecommerce", "checkout", "total_amount", 1010);