mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
GA track tools page
This commit is contained in:
parent
fb925b8fc2
commit
004812bb09
1 changed files with 4 additions and 0 deletions
|
@ -12,10 +12,12 @@ namespace Bit.App.Pages
|
||||||
public class ToolsPage : ExtendedContentPage
|
public class ToolsPage : ExtendedContentPage
|
||||||
{
|
{
|
||||||
private readonly IUserDialogs _userDialogs;
|
private readonly IUserDialogs _userDialogs;
|
||||||
|
private readonly IGoogleAnalyticsService _googleAnalyticsService;
|
||||||
|
|
||||||
public ToolsPage()
|
public ToolsPage()
|
||||||
{
|
{
|
||||||
_userDialogs = Resolver.Resolve<IUserDialogs>();
|
_userDialogs = Resolver.Resolve<IUserDialogs>();
|
||||||
|
_googleAnalyticsService = Resolver.Resolve<IGoogleAnalyticsService>();
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
@ -70,6 +72,7 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
private void WebCell_Tapped(object sender, EventArgs e)
|
private void WebCell_Tapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Web");
|
||||||
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
|
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +83,7 @@ namespace Bit.App.Pages
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Import");
|
||||||
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
|
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue