mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
open link events
This commit is contained in:
parent
1b80249b2b
commit
fb4b6e8d45
4 changed files with 33 additions and 5 deletions
|
@ -112,3 +112,11 @@ func leave_afk(time_spent: float) -> Dictionary:
|
|||
var event = base("leave_afk")
|
||||
event.time_spent = time_spent
|
||||
return event
|
||||
|
||||
|
||||
# LINK
|
||||
|
||||
func open_link(url: String) -> Dictionary:
|
||||
var event = base("open_link")
|
||||
event.url = url
|
||||
return event
|
||||
|
|
14
app/scripts/api/analytics/analytics_sender_link.gd
Normal file
14
app/scripts/api/analytics/analytics_sender_link.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends AnalyticsSender
|
||||
class_name AnalyticsSenderLink
|
||||
|
||||
@export var app_events: AppEvents
|
||||
|
||||
|
||||
func start() -> void:
|
||||
super.start()
|
||||
|
||||
app_events.open_link.connect(send_open_link)
|
||||
|
||||
|
||||
func send_open_link(url: String) -> void:
|
||||
analytics.send_event(AnalyticsEvents.open_link(url))
|
Loading…
Add table
Add a link
Reference in a new issue