From 5af37fd3da54672a519a024b75309ea33070e586 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Fri, 1 Jun 2012 13:23:52 -0700 Subject: [PATCH] consolidate mixpanel streams by making Profile one page [ci skip] --- app/assets/javascripts/app/router.js | 1 + app/views/people/show.html.haml | 2 ++ 2 files changed, 3 insertions(+) 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