event
fun Umami.event(referrer: String? = null, title: String? = null, url: String? = null, name: String? = null, data: Map<String, Any?>? = null, tag: String? = null, timestamp: Long? = now(), id: String? = null)
Sends an event to the Umami API.
Parameters
referrer
The referrer URL.
title
The title of the page.
url
The URL of the page.
name
The name of the event.
data
Additional data for the event.
tag
A tag for the event.
timestamp
The timestamp of the event. The default is the current time in milliseconds since the epoch.
id
The ID of the event.