mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 05:17:25 -04:00
open link events
This commit is contained in:
parent
1b80249b2b
commit
fb4b6e8d45
4 changed files with 33 additions and 5 deletions
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