From 004812bb09301bcc2d11666c194cf4e30b75a4f7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 5 Aug 2016 00:20:45 -0400 Subject: [PATCH] GA track tools page --- src/App/Pages/Tools/ToolsPage.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/Pages/Tools/ToolsPage.cs b/src/App/Pages/Tools/ToolsPage.cs index 3a15ab926..18e7f6507 100644 --- a/src/App/Pages/Tools/ToolsPage.cs +++ b/src/App/Pages/Tools/ToolsPage.cs @@ -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(); + _googleAnalyticsService = Resolver.Resolve(); 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")); }