Skip to content

Commit

Permalink
More analytics updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Laumania committed Oct 4, 2012
1 parent d529811 commit 1e270e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/WindowsFanDkApp/Views/PostCommentView.xaml.cs
Expand Up @@ -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;

Expand Down Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/WindowsFanDkApp/Views/PostPageView.xaml.cs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/WindowsFanDkApp/Views/PostsByCategoryPageView.xaml.cs
Expand Up @@ -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
{
Expand Down

0 comments on commit 1e270e3

Please sign in to comment.