mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Instrumented key events in extension
This commit is contained in:
@@ -28,10 +28,20 @@ namespace Bit.iOS.Core.Services
|
||||
_setUserId = true;
|
||||
}
|
||||
|
||||
public void TrackEvent(string category, string eventName)
|
||||
public void TrackAppEvent(string eventName, string label = null)
|
||||
{
|
||||
TrackEvent("App", eventName, label);
|
||||
}
|
||||
|
||||
public void TrackExtensionEvent(string eventName, string label = null)
|
||||
{
|
||||
TrackEvent("Extension", eventName, label);
|
||||
}
|
||||
|
||||
public void TrackEvent(string category, string eventName, string label = null)
|
||||
{
|
||||
SetUserId();
|
||||
var dict = DictionaryBuilder.CreateEvent(category, eventName, "AppEvent", null).Build();
|
||||
var dict = DictionaryBuilder.CreateEvent(category, eventName, label, null).Build();
|
||||
_tracker.Send(dict);
|
||||
Gai.SharedInstance.Dispatch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user