diff --git a/src/WindowsFanDkApp/Views/PostCommentView.xaml.cs b/src/WindowsFanDkApp/Views/PostCommentView.xaml.cs index 8e094eb..1384174 100644 --- a/src/WindowsFanDkApp/Views/PostCommentView.xaml.cs +++ b/src/WindowsFanDkApp/Views/PostCommentView.xaml.cs @@ -8,6 +8,7 @@ using System.Windows.Markup; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; +using WindowsFanDkApp.Analytics; using WindowsFanDkApp.Api.Models; using WindowsFanDkApp.Common; @@ -44,6 +45,12 @@ public PostCommentView() } } + protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) + { + base.OnNavigatedTo(e); + AnalyticsHelper.TrackPageView("PostCommentView/" + post.Slug); + } + private void btnSubmitComment_Click(object sender, RoutedEventArgs e) { if (IsStringNullEmptyOrWhiteSpace(txtContent.Text) || IsStringNullEmptyOrWhiteSpace(txtName.Text)) diff --git a/src/WindowsFanDkApp/Views/PostPageView.xaml.cs b/src/WindowsFanDkApp/Views/PostPageView.xaml.cs index aa6d231..14632ac 100644 --- a/src/WindowsFanDkApp/Views/PostPageView.xaml.cs +++ b/src/WindowsFanDkApp/Views/PostPageView.xaml.cs @@ -33,7 +33,7 @@ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventA if (post != null && post.CommentStatus == CommentStatus.open) ApplicationBar.IsVisible = true; - AnalyticsHelper.TrackPageView("PostPageView " + ViewModel.Post.Slug); + AnalyticsHelper.TrackPageView("PostPageView/" + ViewModel.Post.Slug); GlobalProgressIndicator.Current.IsLoading = false; } else diff --git a/src/WindowsFanDkApp/Views/PostsByCategoryPageView.xaml.cs b/src/WindowsFanDkApp/Views/PostsByCategoryPageView.xaml.cs index 9c04d84..dfb75ee 100644 --- a/src/WindowsFanDkApp/Views/PostsByCategoryPageView.xaml.cs +++ b/src/WindowsFanDkApp/Views/PostsByCategoryPageView.xaml.cs @@ -33,7 +33,7 @@ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventA GlobalProgressIndicator.Current.IsLoading = true; ViewModel.Setup(category); GlobalProgressIndicator.Current.IsLoading = false; - AnalyticsHelper.TrackPageView("PostsByCategory " + category.Title); + AnalyticsHelper.TrackPageView("PostsByCategory/" + category.Title); } else {