diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-22 19:30:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-22 19:30:13 -0600 |
| commit | efbfc2cbb156afeb4e18e8d93de6a403924f496a (patch) | |
| tree | bcfbb39ca209259d6b36e71ab14fa08a9b5c7cbf | |
| parent | 6abb992cb95799d24344f67374c4ccb6d89c9ec1 (diff) | |
add profile url to mixpanel data
| -rw-r--r-- | app/views/layouts/_mixpanel.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_mixpanel.html.erb b/app/views/layouts/_mixpanel.html.erb index caab61df..9d1b54c2 100644 --- a/app/views/layouts/_mixpanel.html.erb +++ b/app/views/layouts/_mixpanel.html.erb @@ -9,7 +9,7 @@ mixpanel.disable(); <% end %> mixpanel.identify(<%= current_user.id %>); mixpanel.name_tag("<%= current_user.email %>"); -mixpanel.people.set({"$email":"<%= current_user.email %>","$created":"<%= current_user.created_at %>","$last_login":"<%= current_user.last_sign_in_at %>","city":"<%= current_user.city %>","latitude":"<%= current_user.latitude %>","longitude":"<%= current_user.longitude %>","website":"<%= current_user.website %>","twitter":"<%= current_user.twitter %>","facebook":"<%= current_user.facebook %>"}); +mixpanel.people.set({"$email":"<%= current_user.email %>","$created":"<%= current_user.created_at %>","$last_login":"<%= current_user.last_sign_in_at %>","city":"<%= current_user.city %>","latitude":"<%= current_user.latitude %>","longitude":"<%= current_user.longitude %>","website":"<%= current_user.website %>","twitter":"<%= current_user.twitter %>","facebook":"<%= current_user.facebook %>","profile":"<%= "#{request.protocol}#{request.host_with_port}#{url_for(profile_path(current_user))}" %>"}); mixpanel.track_links(".mix-link", "clicked-link", function(ele) { return { type: $(ele).attr('data-event')}}); </script> <% end %> |
