GA track tools page

This commit is contained in:
Kyle Spearrin 2016-08-05 00:20:45 -04:00
parent fb925b8fc2
commit 004812bb09

View file

@ -12,10 +12,12 @@ namespace Bit.App.Pages
public class ToolsPage : ExtendedContentPage
{
private readonly IUserDialogs _userDialogs;
private readonly IGoogleAnalyticsService _googleAnalyticsService;
public ToolsPage()
{
_userDialogs = Resolver.Resolve<IUserDialogs>();
_googleAnalyticsService = Resolver.Resolve<IGoogleAnalyticsService>();
Init();
}
@ -70,6 +72,7 @@ namespace Bit.App.Pages
private void WebCell_Tapped(object sender, EventArgs e)
{
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Web");
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
}
@ -80,6 +83,7 @@ namespace Bit.App.Pages
return;
}
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Import");
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
}