diff --git a/app/assets/javascripts/app/router.js b/app/assets/javascripts/app/router.js index 88c544738..905a82ce2 100644 --- a/app/assets/javascripts/app/router.js +++ b/app/assets/javascripts/app/router.js @@ -34,6 +34,7 @@ app.Router = Backbone.Router.extend({ }, newProfile : function(personId) { + app.instrument("track_pageview", "Profile") this.renderPage(function(){ return new app.pages.Profile({ personId : personId })}); }, diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 206cfad3c..b32f68061 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -7,6 +7,8 @@ = javascript_include_tag :people :javascript Mentions.options.prefillMention = #{@person.to_json}; + app.instrument("track_pageview", "Profile") + - content_for :page_title do = @person.name