analytics: first_frame event, floats

This commit is contained in:
Nordup 2024-10-26 00:32:41 +04:00
parent 74e165b174
commit 6528dffe57
8 changed files with 43 additions and 29 deletions

View file

@ -17,13 +17,13 @@ func app_open() -> Dictionary:
return base("application_open")
func heartbeat(time_spend: int) -> Dictionary:
func heartbeat(time_spend: float) -> Dictionary:
var event = base("heartbeat")
event.time_spend = time_spend
return event
func app_exit(time_spend: int) -> Dictionary:
func app_exit(time_spend: float) -> Dictionary:
var event = base("application_exit")
event.time_spend = time_spend
return event
@ -43,14 +43,21 @@ func gate_open(url: String) -> Dictionary:
return event
func gate_enter(url: String, download_time: int) -> Dictionary:
func gate_enter(url: String, download_time: float) -> Dictionary:
var event = base("gate_enter")
event.gate_url = url
event.download_time = download_time
return event
func gate_exit(url: String, time_spend: int) -> Dictionary:
func first_frame(url: String, loading_time: float) -> Dictionary:
var event = base("first_frame")
event.gate_url = url
event.loading_time = loading_time
return event
func gate_exit(url: String, time_spend: float) -> Dictionary:
var event = base("gate_exit")
event.gate_url = url
event.time_spend = time_spend