Core usage
umami.track()
import django_umami.core
def my_function():
django_umami.core.umami.track("someone went to my function!")
data = django_umami.core.UmamiEventData(
hostname="example.com",
language = "en-GB",
referrer = "",
screen = "1920x1080",
title = "abc",
url = "/my_event",
name = "My Custom Event"
)
django_umami.core.umami.track(data)
django_umami.core.umami.track({
"name": "My Custom Event",
"url": "/my_page/123"
})
umami.track_event_name()
umami.send()
This is the manual method for sending a raw event
PARAMETER | DESCRIPTION | REQUIRED |
---|---|---|
payload (UmamiPayload) |